Typo.
authorjbj <devnull@localhost>
Mon, 14 Jun 2004 17:54:06 +0000 (17:54 +0000)
committerjbj <devnull@localhost>
Mon, 14 Jun 2004 17:54:06 +0000 (17:54 +0000)
CVS patchset: 7326
CVS date: 2004/06/14 17:54:06

lib/formats.c

index 82cb8ad..c5e42f0 100644 (file)
@@ -340,17 +340,16 @@ static /*@only@*/ char * xmlFormat(int_32 type, const void * data,
     }
 /*@=branchstate@*/
 
-    if (s == NULL) {
 /*@-branchstate@*/
-       if (anint != 0) {
+    if (s == NULL) {
        int tlen = 32;
        t = memset(alloca(tlen+1), 0, tlen+1);
-       xx = snprintf(t, tlen, "%lu", anint);
+       if (anint != 0)
+           xx = snprintf(t, tlen, "%lu", anint);
        s = t;
-    }
-/*@=branchstate@*/
        xtag = "integer";
     }
+/*@=branchstate@*/
 
     nb = xmlstrlen(s);
     if (nb == 0) {