fixed warning if plugin list has trailing whitespaces
authorMartin Willi <martin@strongswan.org>
Fri, 16 May 2008 13:48:58 +0000 (13:48 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 16 May 2008 13:48:58 +0000 (13:48 -0000)
src/libstrongswan/plugins/plugin_loader.c

index 6c25cfb..44081d1 100644 (file)
@@ -105,6 +105,10 @@ static int load(private_plugin_loader_t *this, char *path, char *list)
                        {
                                pos++;
                        }
+                       if (!*pos)
+                       {
+                               break;
+                       }
                }
                plugin = load_plugin(this, path, list);
                if (plugin)