summaryrefslogtreecommitdiffstats
path: root/subopt-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'subopt-helper.c')
-rw-r--r--subopt-helper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/subopt-helper.c b/subopt-helper.c
index 9ae6669a05..0cf2299899 100644
--- a/subopt-helper.c
+++ b/subopt-helper.c
@@ -262,6 +262,15 @@ static char const * parse_str( char const * str, strarg_t * const valp )
match = &str[len];
}
else
+ if (str[0] == '"') {
+ str = &str[1];
+ match = strchr(str, '"');
+ if (!match)
+ return NULL;
+ valp->len = match - str;
+ valp->str = str;
+ return &match[1];
+ }
if ( !match )
match = &str[strlen(str)];