Differences From:
File
src/th_main.c
part of check-in
[46e6a03232]
- Get rudimentary ticket editing working.
by
drh on
2008-05-16 18:57:59.
[view]
To:
File
src/th_main.c
part of check-in
[449559394a]
- Fix a bug that prevents the /tktnew page from working with no login.
by
drh on
2008-07-20 15:30:32.
[view]
@@ -323,9 +323,11 @@
** Store a string value in a variable in the interpreter.
*/
void Th_Store(const char *zName, const char *zValue){
Th_FossilInit();
- Th_SetVar(g.interp, (uchar*)zName, -1, (uchar*)zValue, strlen(zValue));
+ if( zValue ){
+ Th_SetVar(g.interp, (uchar*)zName, -1, (uchar*)zValue, strlen(zValue));
+ }
}
/*
** Unset a variable.