summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02e12db)
raw | patch | inline | side by side (parent: 02e12db)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 16 Jun 2010 16:53:27 +0000 (18:53 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 16 Jun 2010 17:07:41 +0000 (19:07 +0200) |
src/varnish.c | patch | blob | history |
diff --git a/src/varnish.c b/src/varnish.c
index 6716231f98744f7862436198e3948e0830c84e8f..23253127b7e8dd542ec08ff677669c8e1a580603 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
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));