Mercurial > audlegacy
comparison src/audacious/pluginenum.c @ 3454:c0eb377bb4e5 trunk
Check pointer to prevent NULL dereference.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 08 Sep 2007 02:55:28 +0300 |
parents | 7043b5c94a94 |
children | 6aea4fb32ef4 |
comparison
equal
deleted
inserted
replaced
3453:fb270cb264d7 | 3454:c0eb377bb4e5 |
---|---|
519 | 519 |
520 if (cfg.disabled_iplugins) { | 520 if (cfg.disabled_iplugins) { |
521 disabled = g_strsplit(cfg.disabled_iplugins, ":", 0); | 521 disabled = g_strsplit(cfg.disabled_iplugins, ":", 0); |
522 | 522 |
523 while (disabled[i]) { | 523 while (disabled[i]) { |
524 INPUT_PLUGIN(plugin_get_plugin(disabled[i]))->enabled = FALSE; | 524 Plugin *plugintmp = plugin_get_plugin(disabled[i]); |
525 if (plugintmp) | |
526 INPUT_PLUGIN(plugintmp)->enabled = FALSE; | |
525 i++; | 527 i++; |
526 } | 528 } |
527 | 529 |
528 g_free(disabled); | 530 g_free(disabled); |
529 | 531 |