avoid null strcmp

SVN revision: 64899
This commit is contained in:
Mike Blumenkrantz 2011-11-07 23:09:26 +00:00
parent d7dac60928
commit 9254625b31
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ evry_plugin_register(Evry_Plugin *p, int type, int priority)
else if (type == EVRY_PLUGIN_OBJECT)
evry_conf->conf_objects = conf;
if ((type == EVRY_PLUGIN_SUBJECT) && (strcmp(p->name, "All")))
if ((type == EVRY_PLUGIN_SUBJECT) && (p->name && strcmp(p->name, "All")))
{
char buf[256];
snprintf(buf, sizeof(buf), _("Show %s Plugin"), p->name);