git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43de7b3
)
don't crash, if the given filename doesn't contain a dot e.g. 'test123'
author
ulfl
<ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 18 May 2005 01:21:49 +0000
(
01:21
+0000)
committer
ulfl
<ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 18 May 2005 01:21:49 +0000
(
01:21
+0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14390
f5534014
-38df-0310-8fa8-
9805f1628bb7
fileset.c
patch
|
blob
|
history
diff --git
a/fileset.c
b/fileset.c
index c47f7ee44ba76bb75924c70a44766fb2efa3b72e..362121d20eb12442c24e61c3acd8f29575248235 100644
(file)
--- a/
fileset.c
+++ b/
fileset.c
@@
-144,7
+144,7
@@
fileset_is_file_in_set(const char *fname1, const char *fname2)
pfx1 = strrchr(dup_f1, '.');
pfx2 = strrchr(dup_f2, '.');
- if(strcmp(pfx1, pfx2) != 0) {
+ if(
pfx1 == NULL || pfx2 == NULL ||
strcmp(pfx1, pfx2) != 0) {
g_free(dup_f1);
g_free(dup_f2);
return FALSE;