* its a pointer, so compare it with NULL not 0
authorWilfried Göesgens <willi@citadel.org>
Sun, 21 Feb 2010 17:03:06 +0000 (17:03 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 21 Feb 2010 17:03:06 +0000 (17:03 +0000)
libcitadel/lib/stringbuf.c

index 5ded8753fa828463eabe2e8d894d72e1e109f315..fe4913fa4487a48fb166485ed04bfe2d5b396eae 100644 (file)
@@ -3456,7 +3456,7 @@ int StrBufReadBLOBBuffered(StrBuf *Blob,
        
        pos = *Pos;
 
-       if (pos > 0)
+       if (pos != NULL)
                len = pos - IOBuf->buf;
        rlen = IOBuf->BufUsed - len;