parse_identifier: Make hostname optional, if a default has been specified.
[collectd.git] / src / utils_cmd_putval.c
index af6b484..0a0af8a 100644 (file)
@@ -102,7 +102,8 @@ cmd_status_t cmd_parse_putval (size_t argc, char **argv,
 
        status = parse_identifier (identifier, &hostname,
                        &plugin, &plugin_instance,
-                       &type, &type_instance);
+                       &type, &type_instance,
+                       NULL);
        if (status != 0)
        {
                DEBUG ("cmd_handle_putval: Cannot parse identifier `%s'.",