diff options
author | Stef Walter <stef@memberwebs.com> | 2008-06-09 19:21:43 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-06-09 19:21:43 +0000 |
commit | 3f65ea3cb042826f7343d80a2a1c048fba16edfa (patch) | |
tree | f71ac23a5bf8a9dd2b4ab15ccc5758bb95ef3083 /plugin/plugin.c | |
parent | b9ecd6e5e5b87fe1c4dab960e92246772002dd6a (diff) |
Bug fixes.
Diffstat (limited to 'plugin/plugin.c')
-rw-r--r-- | plugin/plugin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/plugin.c b/plugin/plugin.c index c38eb67..c34294a 100644 --- a/plugin/plugin.c +++ b/plugin/plugin.c @@ -310,8 +310,10 @@ plugin_init (Slapi_PBlock *pb) plugin_arguments[i] = slapi_ch_strdup (argv[i]); arg = trim (plugin_arguments[i]); - value = strchr (arg, '='); - if (value) { + value = arg + strcspn (arg, ":="); + if (!*value) { + value = NULL; + } else { *value = 0; value = trim (value + 1); } |