aboutsummaryrefslogtreecommitdiffstats
path: root/fileset.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-05-18 01:21:49 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-05-18 01:21:49 +0000
commit01ca09e597f8402dea227bf2cc021922a07a7c7a (patch)
treea142235db5252c16c67e3fed31b34684e632a7e3 /fileset.c
parentcad582a4059c59a0dcd86998975ea754e74211ba (diff)
don't crash, if the given filename doesn't contain a dot e.g. 'test123'
svn path=/trunk/; revision=14390
Diffstat (limited to 'fileset.c')
-rw-r--r--fileset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fileset.c b/fileset.c
index c47f7ee44b..362121d20e 100644
--- 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;