Fossil SCM
Fix a harmless compiler warning.
Commit
c64989d5a0b791261bd4c7ad4fc9040b04367707
Parent
e747dd856379344…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -897,11 +897,11 @@ | ||
| 897 | 897 | const char *zOption; |
| 898 | 898 | const char **pzArgs = 0; |
| 899 | 899 | int nAllocArgs = 0; |
| 900 | 900 | int nUsedArgs = 0; |
| 901 | 901 | |
| 902 | - while( zOption = find_option(zLong, zShort, 1) ){ | |
| 902 | + while( (zOption = find_option(zLong, zShort, 1))!=0 ){ | |
| 903 | 903 | if( pzArgs==0 && nAllocArgs==0 ){ |
| 904 | 904 | nAllocArgs = 1; |
| 905 | 905 | pzArgs = fossil_malloc( nAllocArgs*sizeof(pzArgs[0]) ); |
| 906 | 906 | }else if( nAllocArgs<=nUsedArgs ){ |
| 907 | 907 | nAllocArgs = nAllocArgs*2; |
| 908 | 908 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -897,11 +897,11 @@ | |
| 897 | const char *zOption; |
| 898 | const char **pzArgs = 0; |
| 899 | int nAllocArgs = 0; |
| 900 | int nUsedArgs = 0; |
| 901 | |
| 902 | while( zOption = find_option(zLong, zShort, 1) ){ |
| 903 | if( pzArgs==0 && nAllocArgs==0 ){ |
| 904 | nAllocArgs = 1; |
| 905 | pzArgs = fossil_malloc( nAllocArgs*sizeof(pzArgs[0]) ); |
| 906 | }else if( nAllocArgs<=nUsedArgs ){ |
| 907 | nAllocArgs = nAllocArgs*2; |
| 908 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -897,11 +897,11 @@ | |
| 897 | const char *zOption; |
| 898 | const char **pzArgs = 0; |
| 899 | int nAllocArgs = 0; |
| 900 | int nUsedArgs = 0; |
| 901 | |
| 902 | while( (zOption = find_option(zLong, zShort, 1))!=0 ){ |
| 903 | if( pzArgs==0 && nAllocArgs==0 ){ |
| 904 | nAllocArgs = 1; |
| 905 | pzArgs = fossil_malloc( nAllocArgs*sizeof(pzArgs[0]) ); |
| 906 | }else if( nAllocArgs<=nUsedArgs ){ |
| 907 | nAllocArgs = nAllocArgs*2; |
| 908 |