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-strcasestr.c
diff --git
a/tests/test-c-strcasestr.c
b/tests/test-c-strcasestr.c
index
012571d
..
b511654
100644
(file)
--- a/
tests/test-c-strcasestr.c
+++ b/
tests/test-c-strcasestr.c
@@
-136,10
+136,8
@@
main ()
result = c_strcasestr (haystack, needle);
ASSERT (result == haystack + m);
}
- if (needle != NULL)
- free (needle);
- if (haystack != NULL)
- free (haystack);
+ free (needle);
+ free (haystack);
}
return 0;