Mercurial > audlegacy
changeset 3631:6aea4fb32ef4
Missing NULL-pointer checks are bad, mkay?
This fixes a crash on startup. when no output plugin was selected.
author | Jonathan Schleifer <js@h3c.de> |
---|---|
date | Tue, 25 Sep 2007 17:42:47 +0200 |
parents | 773f69be3d14 |
children | ffe7a2346055 |
files | src/audacious/pluginenum.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/pluginenum.c Tue Sep 25 16:50:44 2007 +0200 +++ b/src/audacious/pluginenum.c Tue Sep 25 17:42:47 2007 +0200 @@ -492,7 +492,7 @@ * prefix. We will only see one plugin with the same * basename, so this is usually what the user want. */ - if (!strcmp(g_basename(cfg.outputplugin), g_basename(op->filename))) + if (cfg.outputplugin && !strcmp(g_basename(cfg.outputplugin), g_basename(op->filename))) op_data.current_output_plugin = op; if (op->init) op->init();