Mercurial > hg > xmms-sid
comparison 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 |
comparison
equal
deleted
inserted
replaced
681:6843b69895d9 | 682:81b9a81b99f2 |
---|---|
226 | 226 |
227 /* Sanity check */ | 227 /* Sanity check */ |
228 if (subEntry < 1) { | 228 if (subEntry < 1) { |
229 XS_STILDB_ERR(lineNum, tmpLine, | 229 XS_STILDB_ERR(lineNum, tmpLine, |
230 "Number of subEntry (%i) for '%s' is invalid\n", | 230 "Number of subEntry (%i) for '%s' is invalid\n", |
231 subEntry, tmnode->filename); | 231 subEntry, tmnode ? tmnode->filename : ""); |
232 subEntry = 0; | 232 subEntry = 0; |
233 } | 233 } |
234 } else { | 234 } else { |
235 XS_STILDB_ERR(lineNum, tmpLine, | 235 XS_STILDB_ERR(lineNum, tmpLine, |
236 "Syntax error, expected subEntry number.\n"); | 236 "Syntax error, expected subEntry number.\n"); |