Fossil SCM

Fix a bug that prevents the /tktnew page from working with no login.

drh 2008-07-20 15:30 trunk
Commit 449559394a510fcb37bbfc3db7bcf5aef16de8f9
1 file changed +3 -1
+3 -1
--- src/th_main.c
+++ src/th_main.c
@@ -322,11 +322,13 @@
322322
/*
323323
** Store a string value in a variable in the interpreter.
324324
*/
325325
void Th_Store(const char *zName, const char *zValue){
326326
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
+ }
328330
}
329331
330332
/*
331333
** Unset a variable.
332334
*/
333335
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button