]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Re-add erranously removed continue
authorDagobert Michelsen <dam@opencsw.org>
Tue, 25 Feb 2020 14:23:33 +0000 (15:23 +0100)
committerDagobert Michelsen <dam@opencsw.org>
Tue, 25 Feb 2020 14:23:56 +0000 (15:23 +0100)
src/utils/cmds/putval.c

index 8611188b77af26d54a2f7ebae4ee91cd1036d002..17c538baf632c3d3a59bd13867ff357f95a6efee 100644 (file)
@@ -71,7 +71,7 @@ static int set_option(value_list_t *vl, const char *key, const char *value,
 
     if (is_quoted(value, value_len)) {
       int metadata_err;
-      const char *value_str = strndup(value + 1, value_len - 2);
+      const char *value_str = sstrndup(value + 1, value_len - 2);
       if (value_str == NULL) {
         return CMD_ERROR;
       }
@@ -201,6 +201,7 @@ cmd_status_t cmd_parse_putval(size_t argc, char **argv,
         result = option_err;
         break;
       }
+      continue;
     } else if (status != CMD_NO_OPTION) {
       /* parse_option failed, buffer has been modified.
        * => we need to abort */