aboutsummaryrefslogtreecommitdiff
path: root/security/clamav-devel/files/patch5-libclamav::zziplib::zzip-file.c
blob: 234f1ce5af2c15a71ad8b9e3c692750916c0f526 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- libclamav/zziplib/zzip-file.c.orig	Wed Feb  5 04:32:11 2003
+++ libclamav/zziplib/zzip-file.c	Wed Feb  5 04:35:05 2003
@@ -11,6 +11,7 @@
  *          that can be found in COPYING.ZZIP
  */
 
+#include <strings.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <errno.h>
@@ -94,7 +95,6 @@
     return 0;
 }
 
-
 static int zzip_inflate_init(ZZIP_FILE *, struct zzip_dir_hdr *);
 
 /**
@@ -113,6 +113,7 @@
     struct zzip_dir_hdr * hdr = dir->hdr0;
     int (*cmp)(zzip_char_t*, zzip_char_t*);
  
+    (void)strcasecmp("","");
     cmp = (o_mode & ZZIP_CASEINSENSITIVE)? strcasecmp: strcmp;
 
     if (o_mode & ZZIP_IGNOREPATH)