]> err.no Git - varnish/commitdiff
Explicitly specify index in name array.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 19 Jul 2008 11:49:43 +0000 (11:49 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 19 Jul 2008 11:49:43 +0000 (11:49 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2964 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_panic.c

index e5dbc1b7e46177298f092c56f6dd86af619deb43..1232397ac8d1ee8396a417445e03c92ae68a2e5e 100644 (file)
@@ -66,7 +66,7 @@ static char *pstr = panicstr;
 
 /* step names */
 static const char *steps[] = {
-#define STEP(l, u) "STP_" #u,
+#define STEP(l, u) [STP_##u] = "STP_" #u,
 #include "steps.h"
 #undef STEP
 };