sstrncpy(vl.plugin, "varnish", sizeof(vl.plugin));
- if (plugin_instance != NULL) {
- sstrncpy (vl.plugin_instance, plugin_instance,
+ if (plugin_instance == NULL)
+ plugin_instance = "default";
+
+ sstrncpy (vl.plugin_instance, plugin_instance,
sizeof (vl.plugin_instance));
- strncat(vl.plugin_instance, "-", 1);
- strncat(vl.plugin_instance, category, sizeof(category));
- }
+ strncat(vl.plugin_instance, "-", 1);
+ strncat(vl.plugin_instance, category, sizeof(category));
sstrncpy(vl.type, type, sizeof(vl.type));