projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NULL is a pointer, not string terminator
[oweals/cde.git]
/
cde
/
lib
/
csa
/
reparser.y
diff --git
a/cde/lib/csa/reparser.y
b/cde/lib/csa/reparser.y
index 9044765e488375a3ee761cc8c08edc68a363cda9..4c2a19a2d906bc55ed1f6687f1f11ab31adddf51 100644
(file)
--- a/
cde/lib/csa/reparser.y
+++ b/
cde/lib/csa/reparser.y
@@
-435,12
+435,12
@@
occurrence : FIRSTWEEK endMarker
endDate : /* empty */
{
- $$ =
NULL
;
+ $$ =
'\0'
;
}
| DATE
{
if (_csa_iso8601_to_tick($1, &$$) == -1)
- $$ =
NULL
;
+ $$ =
'\0'
;
}
;