Fossil SCM
Fix a bug that prevents the /tktnew page from working with no login.
Commit
449559394a510fcb37bbfc3db7bcf5aef16de8f9
Parent
f0474b87b012822…
1 file changed
+3
-1
+3
-1
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -322,11 +322,13 @@ | ||
| 322 | 322 | /* |
| 323 | 323 | ** Store a string value in a variable in the interpreter. |
| 324 | 324 | */ |
| 325 | 325 | void Th_Store(const char *zName, const char *zValue){ |
| 326 | 326 | Th_FossilInit(); |
| 327 | - Th_SetVar(g.interp, (uchar*)zName, -1, (uchar*)zValue, strlen(zValue)); | |
| 327 | + if( zValue ){ | |
| 328 | + Th_SetVar(g.interp, (uchar*)zName, -1, (uchar*)zValue, strlen(zValue)); | |
| 329 | + } | |
| 328 | 330 | } |
| 329 | 331 | |
| 330 | 332 | /* |
| 331 | 333 | ** Unset a variable. |
| 332 | 334 | */ |
| 333 | 335 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -322,11 +322,13 @@ | |
| 322 | /* |
| 323 | ** Store a string value in a variable in the interpreter. |
| 324 | */ |
| 325 | void Th_Store(const char *zName, const char *zValue){ |
| 326 | Th_FossilInit(); |
| 327 | Th_SetVar(g.interp, (uchar*)zName, -1, (uchar*)zValue, strlen(zValue)); |
| 328 | } |
| 329 | |
| 330 | /* |
| 331 | ** Unset a variable. |
| 332 | */ |
| 333 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -322,11 +322,13 @@ | |
| 322 | /* |
| 323 | ** Store a string value in a variable in the interpreter. |
| 324 | */ |
| 325 | void Th_Store(const char *zName, const char *zValue){ |
| 326 | Th_FossilInit(); |
| 327 | if( zValue ){ |
| 328 | Th_SetVar(g.interp, (uchar*)zName, -1, (uchar*)zValue, strlen(zValue)); |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | /* |
| 333 | ** Unset a variable. |
| 334 | */ |
| 335 |