do not search for log queue in plugins
authorMichal Voců <michal@ruk.cuni.cz>
Mon, 13 Sep 2010 13:37:40 +0000 (13:37 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Mon, 13 Sep 2010 13:37:40 +0000 (13:37 +0000)
org.glite.lb.logger/src/plugin_mgr.c

index b1a7633..cdf1e70 100644 (file)
@@ -79,6 +79,9 @@ plugin_get(const char *scheme)
 {
        struct plugin_list *outp;
 
+       if(scheme == NULL) {
+         return NULL;
+       }
        for(outp = plugins; outp != NULL; outp = outp->next) {
                if((outp->plugin_def.plugin_supports_scheme)(scheme)) {
                        return &outp->plugin_def;