projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Inbound network authentication working. Fixed a bug in the split-horizon
[citadel.git]
/
citadel
/
tools.c
diff --git
a/citadel/tools.c
b/citadel/tools.c
index 28e5c4789c3388e35c46552aab3b6ab67a7fa202..8ff62786d6ce9fb41a8ceee9dc27442558a6c28e 100644
(file)
--- a/
citadel/tools.c
+++ b/
citadel/tools.c
@@
-75,6
+75,7
@@
int num_tokens(char *source, char tok) {
int a;
int count = 1;
+ if (source == NULL) return(0);
for (a=0; a<strlen(source); ++a) {
if (source[a]==tok) ++count;
}