]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/alloc_entry.c
ncurses 5.7 - patch 20100501
[ncurses.git] / ncurses / tinfo / alloc_entry.c
index 5b5325daea8bb25354be5558de3bd3fa0cc6e85d..a54f9ef3e75b219bd1a34d58fd9ab55030f0af62 100644 (file)
@@ -47,7 +47,7 @@
 
 #include <tic.h>
 
-MODULE_ID("$Id: alloc_entry.c,v 1.49 2010/01/23 17:57:43 tom Exp $")
+MODULE_ID("$Id: alloc_entry.c,v 1.50 2010/05/01 19:55:48 tom Exp $")
 
 #define ABSENT_OFFSET    -1
 #define CANCELLED_OFFSET -2
@@ -64,8 +64,10 @@ _nc_init_entry(TERMTYPE *const tp)
     unsigned i;
 
 #if NO_LEAKS
-    if (tp == 0 && stringbuf != 0) {
-       FreeAndNull(stringbuf);
+    if (tp == 0) {
+       if (stringbuf != 0) {
+           FreeAndNull(stringbuf);
+       }
        return;
     }
 #endif