Check-in [d63f87c003]
Not logged in
Overview

SHA1 Hash:d63f87c0030a10945c4614a2c007de433a67b5ca
Date: 2009-03-22 13:44:43
User: drh
Comment:Fix a C89 violation in main.c.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/main.c from [c2e4729e31] to [828c799fea].

@@ -331,12 +331,13 @@
   int nLong;
   const char *zReturn = 0;
   assert( hasArg==0 || hasArg==1 );
   nLong = strlen(zLong);
   for(i=2; i<g.argc; i++){
+    char *z;
     if (i+hasArg >= g.argc) break;
-    char *z = g.argv[i];
+    z = g.argv[i];
     if( z[0]!='-' ) continue;
     z++;
     if( z[0]=='-' ){
       if( z[1]==0 ){
         remove_from_argv(i, 1);