Mercurial > hg > xmms-sid
diff src/xs_stil.c @ 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 | b0743dc9165d |
children | 9321ffa2ea7e |
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 {