From 69e45d2c7c380a8ef900dd06f06afdf5d3b2a906 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 8 May 2005 09:16:17 -0700 Subject: [PATCH] [svn] Place variable declarations in escnonprint_internal before other statements. --- src/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 2a9d5863..d1793d43 100644 --- a/src/log.c +++ b/src/log.c @@ -704,10 +704,11 @@ static const char * escnonprint_internal (const char *str, char escape, int base) { static int ringpos; /* current ring position */ + int nprcnt; assert (base == 8 || base == 16); - int nprcnt = count_nonprint (str); + nprcnt = count_nonprint (str); if (nprcnt == 0) /* If there are no non-printable chars in STR, don't bother copying anything, just return STR. */ -- 2.39.2