projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove useless "if" tests before free. Deprecate "free" module.
[gnulib.git]
/
tests
/
test-c-strstr.c
diff --git
a/tests/test-c-strstr.c
b/tests/test-c-strstr.c
index
75b8d5d
..
a8682cb
100644
(file)
--- a/
tests/test-c-strstr.c
+++ b/
tests/test-c-strstr.c
@@
-129,10
+129,8
@@
main ()
result = c_strstr (haystack, needle);
ASSERT (result == haystack + m);
}
- if (needle != NULL)
- free (needle);
- if (haystack != NULL)
- free (haystack);
+ free (needle);
+ free (haystack);
}
return 0;