Mercurial > audlegacy
diff src/audacious/pluginenum.c @ 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 | c0eb377bb4e5 |
children | 84bc78954db5 |
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();