Fossil SCM
Trivial makeheaders patch from [https://fossil-scm.org/forum/forumpost/0fc3f6b8d8], plus a small typo fix.
Commit
00ad7ef3f2caf9342aa3b12cad2a1d36943d04bfe072de928cffb8b7c5ac8ed7
Parent
e7f13b82b63a4f5…
1 file changed
+2
-1
+2
-1
| --- src/makeheaders.c | ||
| +++ src/makeheaders.c | ||
| @@ -299,11 +299,11 @@ | ||
| 299 | 299 | ** to construct large in-memory strings from lots of smaller components. |
| 300 | 300 | */ |
| 301 | 301 | typedef struct String String; |
| 302 | 302 | struct String { |
| 303 | 303 | int nAlloc; /* Number of bytes allocated */ |
| 304 | - int nUsed; /* Number of bytes used (not counting null terminator) */ | |
| 304 | + int nUsed; /* Number of bytes used (not counting nul terminator) */ | |
| 305 | 305 | char *zText; /* Text of the string */ |
| 306 | 306 | }; |
| 307 | 307 | |
| 308 | 308 | /* |
| 309 | 309 | ** The following structure contains a lot of state information used |
| @@ -1405,10 +1405,11 @@ | ||
| 1405 | 1405 | default: |
| 1406 | 1406 | break; |
| 1407 | 1407 | } |
| 1408 | 1408 | if( skipOne ){ |
| 1409 | 1409 | pFirst = pFirst->pNext; |
| 1410 | + skipOne = 0; | |
| 1410 | 1411 | continue; |
| 1411 | 1412 | } |
| 1412 | 1413 | /* Fall thru to the next case */ |
| 1413 | 1414 | case TT_Number: |
| 1414 | 1415 | if( needSpace ){ |
| 1415 | 1416 |
| --- src/makeheaders.c | |
| +++ src/makeheaders.c | |
| @@ -299,11 +299,11 @@ | |
| 299 | ** to construct large in-memory strings from lots of smaller components. |
| 300 | */ |
| 301 | typedef struct String String; |
| 302 | struct String { |
| 303 | int nAlloc; /* Number of bytes allocated */ |
| 304 | int nUsed; /* Number of bytes used (not counting null terminator) */ |
| 305 | char *zText; /* Text of the string */ |
| 306 | }; |
| 307 | |
| 308 | /* |
| 309 | ** The following structure contains a lot of state information used |
| @@ -1405,10 +1405,11 @@ | |
| 1405 | default: |
| 1406 | break; |
| 1407 | } |
| 1408 | if( skipOne ){ |
| 1409 | pFirst = pFirst->pNext; |
| 1410 | continue; |
| 1411 | } |
| 1412 | /* Fall thru to the next case */ |
| 1413 | case TT_Number: |
| 1414 | if( needSpace ){ |
| 1415 |
| --- src/makeheaders.c | |
| +++ src/makeheaders.c | |
| @@ -299,11 +299,11 @@ | |
| 299 | ** to construct large in-memory strings from lots of smaller components. |
| 300 | */ |
| 301 | typedef struct String String; |
| 302 | struct String { |
| 303 | int nAlloc; /* Number of bytes allocated */ |
| 304 | int nUsed; /* Number of bytes used (not counting nul terminator) */ |
| 305 | char *zText; /* Text of the string */ |
| 306 | }; |
| 307 | |
| 308 | /* |
| 309 | ** The following structure contains a lot of state information used |
| @@ -1405,10 +1405,11 @@ | |
| 1405 | default: |
| 1406 | break; |
| 1407 | } |
| 1408 | if( skipOne ){ |
| 1409 | pFirst = pFirst->pNext; |
| 1410 | skipOne = 0; |
| 1411 | continue; |
| 1412 | } |
| 1413 | /* Fall thru to the next case */ |
| 1414 | case TT_Number: |
| 1415 | if( needSpace ){ |
| 1416 |