changeset 682:81b9a81b99f2

Fixed a rare null-pointer dereference, discovered via zzuf.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 May 2008 07:24:45 +0300
parents 6843b69895d9
children 3cc9b8e23d88
files src/xs_stil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xs_stil.c	Sat May 10 02:50:58 2008 +0300
+++ b/src/xs_stil.c	Mon May 19 07:24:45 2008 +0300
@@ -228,7 +228,7 @@
                     if (subEntry < 1) {
                         XS_STILDB_ERR(lineNum, tmpLine,
                             "Number of subEntry (%i) for '%s' is invalid\n",
-                            subEntry, tmnode->filename);
+                            subEntry, tmnode ? tmnode->filename : "");
                         subEntry = 0;
                     }
                 } else {