projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6530b17
)
test_regex.c: fix invalid memset
author
Marko Kreen
<markokr@gmail.com>
Tue, 5 Jun 2012 10:46:59 +0000
(13:46 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 5 Jun 2012 10:46:59 +0000
(13:46 +0300)
test/test_regex.c
patch
|
blob
|
blame
|
history
diff --git
a/test/test_regex.c
b/test/test_regex.c
index bc07956acdda3eb7fe8543736318b853a0eb8803..1e0718b7b5719f33fcf28024b67058b895dbe002 100644
(file)
--- a/
test/test_regex.c
+++ b/
test/test_regex.c
@@
-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 */