projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f81a5a3
)
GVEA: StrLength is NULL-Safe and truly tells us whether the string is actually there.
author
Wilfried Goesgens
<dothebart@citadel.org>
Wed, 5 Dec 2012 22:55:39 +0000
(23:55 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Wed, 5 Dec 2012 22:55:39 +0000
(23:55 +0100)
webcit/preferences.c
patch
|
blob
|
history
diff --git
a/webcit/preferences.c
b/webcit/preferences.c
index 1155a182da6b846d68fccacde2646ec0207835f5..242dbbddbbe22e2c9cb1d16797f597b60f89d447 100644
(file)
--- a/
webcit/preferences.c
+++ b/
webcit/preferences.c
@@
-1055,9
+1055,9
@@
HashList *GetGVEAHash(StrBuf *Target, WCTemplputParams *TP)
i = snprintf(N, sizeof(N), "%d", n);
StrBufTrim(Rcp);
VEA->Address = Rcp;
- if (
EnvelopeTo != NULL
)
+ if (
StrLength(EnvelopeTo) > 0
)
VEA->IsDefault = strstr(ChrPtr(EnvelopeTo), ChrPtr(Rcp)) != NULL;
- else if (
DefaultFrom != NULL
)
+ else if (
StrLength(DefaultFrom) > 0
)
VEA->IsDefault = !strcmp(ChrPtr(Rcp), ChrPtr(DefaultFrom));
else
VEA->IsDefault = 0;