aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/invokecharon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/starter/invokecharon.c')
-rw-r--r--src/starter/invokecharon.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c
index 16a7f2aa8..95ef0bc92 100644
--- a/src/starter/invokecharon.c
+++ b/src/starter/invokecharon.c
@@ -130,10 +130,9 @@ starter_start_charon (starter_config_t *cfg, bool no_fork)
/* parse debug string */
{
int level;
- char *pos, *buf_pos, type[4];
-
- pos = cfg->setup.charondebug;
- buf_pos = buffer;
+ char type[4];
+ char *pos = cfg->setup.charondebug;
+ char *buf_pos = buffer;
while (pos && sscanf(pos, "%4s %d,", type, &level) == 2)
{