]> granicus.if.org Git - curl/commitdiff
proper fix for compiler warning
authorYang Tse <yangsita@gmail.com>
Fri, 13 Apr 2007 08:45:07 +0000 (08:45 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 13 Apr 2007 08:45:07 +0000 (08:45 +0000)
lib/base64.c

index 7b2a9c6a792c79e232d5ccaa33a5b3ce1b6b65d8..a46d1f762785f23c466b472144fbe019fe20d6ac 100644 (file)
@@ -59,7 +59,7 @@ static void decodeQuantum(unsigned char *dest, const char *src)
   char *found;
 
   for(i = 0; i < 4; i++) {
-    if((found = strchr(table64, src[i])) != 0)
+    if((found = strchr(table64, src[i])) != NULL)
       x = (x << 6) + (unsigned int)(found - table64);
     else if(src[i] == '=')
       x = (x << 6);