ref: adeca5a4f37c9dde9cd0fcd5f5bbc026c23db82f
parent: a5becc37677b6c86a026ce0ef9819e821d2d046a
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Aug 14 03:32:47 EDT 2015
Fix regression of commit e6e455c The test for the string was not to avoid crashes, was to avoid print something in the case of OCOLON, which is only a way to get three children in a binary tree.
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -307,7 +307,8 @@
emitnode(np->left);
emitnode(np->right);
- printf("\t%s", optxt[op]);
+ if ((s = optxt[op]) != NULL) /* do not print in OCOLON case */
+ printf("\t%s", optxt[op]);
emitletter(np->type);
}