Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3630:773f69be3d14 | 3631:6aea4fb32ef4 |
|---|---|
| 490 /* | 490 /* |
| 491 * Only test basename to avoid problems when changing | 491 * Only test basename to avoid problems when changing |
| 492 * prefix. We will only see one plugin with the same | 492 * prefix. We will only see one plugin with the same |
| 493 * basename, so this is usually what the user want. | 493 * basename, so this is usually what the user want. |
| 494 */ | 494 */ |
| 495 if (!strcmp(g_basename(cfg.outputplugin), g_basename(op->filename))) | 495 if (cfg.outputplugin && !strcmp(g_basename(cfg.outputplugin), g_basename(op->filename))) |
| 496 op_data.current_output_plugin = op; | 496 op_data.current_output_plugin = op; |
| 497 if (op->init) | 497 if (op->init) |
| 498 op->init(); | 498 op->init(); |
| 499 } | 499 } |
| 500 | 500 |
