]> sjero.net Git - wget/commitdiff
[svn] Place variable declarations in escnonprint_internal before other
authorhniksic <devnull@localhost>
Sun, 8 May 2005 16:16:17 +0000 (09:16 -0700)
committerhniksic <devnull@localhost>
Sun, 8 May 2005 16:16:17 +0000 (09:16 -0700)
statements.

src/log.c

index 2a9d586372ebbc85e5aaa4537ce1662493acc7c8..d1793d430301434d56c3860c036a6f9beafcb4c7 100644 (file)
--- 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.  */