summaryrefslogtreecommitdiffstats
path: root/lib/util/debug.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-29 10:25:32 +0000
committerMichael Adam <obnox@samba.org>2014-07-31 18:49:46 +0200
commit9aee4ba4786e49e7cb27b9f8428bb97622ccfb95 (patch)
treef423b635b65625abebef6b8f4bf8d98837a4c5d1 /lib/util/debug.c
parentd8cb678bb65b2f5616122e68ee3d2d76fb88ddd2 (diff)
downloadsamba-9aee4ba4786e49e7cb27b9f8428bb97622ccfb95.tar.gz
samba-9aee4ba4786e49e7cb27b9f8428bb97622ccfb95.tar.xz
samba-9aee4ba4786e49e7cb27b9f8428bb97622ccfb95.zip
debug: Move variables where they are used
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/util/debug.c')
-rw-r--r--lib/util/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c
index d1d4888cdc..42b71c136d 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -344,8 +344,6 @@ static void debug_dump_status(int level)
static bool debug_parse_params(char **params)
{
int i, ndx;
- char *class_name;
- char *class_level;
if (!params)
return false;
@@ -368,6 +366,8 @@ static bool debug_parse_params(char **params)
/* Fill in new debug class levels */
for (; i < debug_num_classes && params[i]; i++) {
+ char *class_name;
+ char *class_level;
char *saveptr;
if ((class_name = strtok_r(params[i],":", &saveptr)) &&
(class_level = strtok_r(NULL, "\0", &saveptr)) &&