]> granicus.if.org Git - graphviz/commitdiff
remove redundant (we hope) test for NULL N_label
authorellson <devnull@localhost>
Tue, 16 Sep 2008 17:21:51 +0000 (17:21 +0000)
committerellson <devnull@localhost>
Tue, 16 Sep 2008 17:21:51 +0000 (17:21 +0000)
lib/common/utils.c

index e2a4ecdb8d87bf22613f2759fccd07a5572eaee7..37447731f22cfd823ca3d5778642633004ad4beb 100644 (file)
@@ -564,10 +564,7 @@ void common_init_node(node_t * n)
        late_double(n, N_height, DEFAULT_NODEHEIGHT, MIN_NODEHEIGHT);
     ND_shape(n) =
        bind_shape(late_nnstring(n, N_shape, DEFAULT_NODESHAPE), n);
-    if (N_label == NULL)
-       str = NODENAME_ESC;
-    else 
-       str = agxget(n, N_label->index);
+    str = agxget(n, N_label->index);
     ND_label(n) = make_label((void*)n, str,
                ((aghtmlstr(str) ? LT_HTML : LT_NONE) | ( (shapeOf(n) == SH_RECORD) ? LT_RECD : LT_NONE)),
                late_double(n, N_fontsize, DEFAULT_FONTSIZE, MIN_FONTSIZE),