aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-05-16 13:48:58 +0000
committerMartin Willi <martin@strongswan.org>2008-05-16 13:48:58 +0000
commit0b0fba9e0d854be95bb28e996c97ec6aa88d042c (patch)
treef24ef17f08ea103b86e0629e689ba903c7995fc9
parent3f730ec1cd930dc8ceafea3465a32c6104982e26 (diff)
downloadstrongswan-0b0fba9e0d854be95bb28e996c97ec6aa88d042c.tar.bz2
strongswan-0b0fba9e0d854be95bb28e996c97ec6aa88d042c.tar.xz
fixed warning if plugin list has trailing whitespaces
-rw-r--r--src/libstrongswan/plugins/plugin_loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c
index 6c25cfbe2..44081d15f 100644
--- a/src/libstrongswan/plugins/plugin_loader.c
+++ b/src/libstrongswan/plugins/plugin_loader.c
@@ -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)