projects
/
infodrom
/
cgilib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8e8a2
)
Properly return NULL when the variable is empty
author
Joey Schulze
<joey@infodrom.org>
Sun, 25 Nov 2007 18:03:36 +0000
(18:03 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 25 Nov 2007 18:03:36 +0000
(18:03 +0000)
cgi.c
patch
|
blob
|
history
diff --git
a/cgi.c
b/cgi.c
index
c3d2d50
..
e9af0e4
100644
(file)
--- a/
cgi.c
+++ b/
cgi.c
@@
-345,7
+345,10
@@
char *cgiGetValue (s_cgi *parms, const char *name)
else
printf ("%s found as %s<br>\n", name, parms->vars[i]->value);
}
- return parms->vars[i]->value;
+ if (strlen(parms->vars[i]->value) > 0)
+ return parms->vars[i]->value;
+ else
+ return NULL;
}
if (cgiDebugLevel) {
if (cgiDebugStderr)