--- a/ncurses/tinfo/parse_entry.c	2018-07-17 19:44:55.333567209 +0530
+++ b/ncurses/tinfo/parse_entry.c	2018-07-17 19:46:52.557569551 +0530
@@ -543,11 +543,12 @@
 		 * Otherwise, look for a base entry that will already
 		 * have picked up defaults via translation.
 		 */
-		for (i = 0; i < entryp->nuses; i++)
-		    if (!strchr((char *) entryp->uses[i].name, '+'))
+		for (i = 0; i < entryp->nuses; i++) {
+	           if (entryp->uses[i].name != 0
+	           && !strchr(entryp->uses[i].name, '+'))
 			has_base_entry = TRUE;
+	    	}
 	    }
-
 	    postprocess_termcap(&entryp->tterm, has_base_entry);
 	} else
 	    postprocess_terminfo(&entryp->tterm);