diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-05-18 01:21:49 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-05-18 01:21:49 +0000 |
commit | ac37a9d6bcf36634996d258cda6305494af05db2 (patch) | |
tree | a142235db5252c16c67e3fed31b34684e632a7e3 /fileset.c | |
parent | 43de7b3f066c7633bfc9d728677445b5659817fa (diff) |
don't crash, if the given filename doesn't contain a dot e.g. 'test123'
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14390 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'fileset.c')
-rw-r--r-- | fileset.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |