test_regex.c: fix invalid memset
authorMarko Kreen <markokr@gmail.com>
Tue, 5 Jun 2012 10:46:59 +0000 (13:46 +0300)
committerMarko Kreen <markokr@gmail.com>
Tue, 5 Jun 2012 10:46:59 +0000 (13:46 +0300)
test/test_regex.c

index bc07956acdda3eb7fe8543736318b853a0eb8803..1e0718b7b5719f33fcf28024b67058b895dbe002 100644 (file)
@@ -18,7 +18,7 @@ static const char *b_rx(const char *regex, const char *str, int flags)
        int nmatch, err, i;
        char *dst = buf;
 
-       memset(&rx, 0, sizeof(&rx));
+       memset(&rx, 0, sizeof(rx));
        memset(matches, -1, sizeof(&matches));
 
        /* compile */