# HG changeset patch # User Jonathan Schleifer # Date 1190734967 -7200 # Node ID 6aea4fb32ef444a30776e952b34713b50a1ba867 # Parent 773f69be3d14f11782e9103056ef74bc4cc9f348 Missing NULL-pointer checks are bad, mkay? This fixes a crash on startup. when no output plugin was selected. diff -r 773f69be3d14 -r 6aea4fb32ef4 src/audacious/pluginenum.c --- 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();