diff options
author | Martin Willi <martin@strongswan.org> | 2008-05-16 13:48:58 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-05-16 13:48:58 +0000 |
commit | 0b0fba9e0d854be95bb28e996c97ec6aa88d042c (patch) | |
tree | f24ef17f08ea103b86e0629e689ba903c7995fc9 /src/libstrongswan/plugins/plugin_loader.c | |
parent | 3f730ec1cd930dc8ceafea3465a32c6104982e26 (diff) | |
download | strongswan-0b0fba9e0d854be95bb28e996c97ec6aa88d042c.tar.bz2 strongswan-0b0fba9e0d854be95bb28e996c97ec6aa88d042c.tar.xz |
fixed warning if plugin list has trailing whitespaces
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.c')
-rw-r--r-- | src/libstrongswan/plugins/plugin_loader.c | 4 |
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) |