Module Name: xsrc
Committed By: christos
Date: Sat Sep 5 14:06:21 UTC 2015
Modified Files:
xsrc/external/mit/ctwm/dist: menus.c
Log Message:
CID 1322886: Avoid null pointer dereference (missing continue)
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/ctwm/dist/menus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.5 xsrc/external/mit/ctwm/dist/menus.c:1.6
--- xsrc/external/mit/ctwm/dist/menus.c:1.5 Sat Sep 5 10:03:11 2015
+++ xsrc/external/mit/ctwm/dist/menus.c Sat Sep 5 10:06:21 2015
@@ -479,6 +479,7 @@ void InitTitlebarButtons (void)
if (!tb->image) { /* cannot happen (see util.c) */
fprintf (stderr, "%s: unable to add titlebar button \"%s\"\n",
ProgramName, tb->name);
+ continue;
}
}
tb->width = tb->image->width;