projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035128d
)
* be a bit more thorough with nulls
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 9 Jun 2009 22:37:03 +0000
(22:37 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 9 Jun 2009 22:37:03 +0000
(22:37 +0000)
webcit/preferences.c
patch
|
blob
|
history
diff --git
a/webcit/preferences.c
b/webcit/preferences.c
index 218d4d438abfbf08b445d56b8b3619ec0d524912..bc263d4e72a709d412539c2f7bdccc25e8fec5f0 100644
(file)
--- a/
webcit/preferences.c
+++ b/
webcit/preferences.c
@@
-160,8
+160,8
@@
void ParsePref(HashList **List, StrBuf *ReadBuf)
}
if ((ChrPtr(ReadBuf)[0] == ' ') &&
- (Data != NULL)) {
- StrBufAppendBuf(Data->Val, ReadBuf, 1);
+ (
Last
Data != NULL)) {
+ StrBufAppendBuf(
Last
Data->Val, ReadBuf, 1);
}
else {
LastData = Data = malloc(sizeof(Preference));
@@
-185,6
+185,7
@@
void ParsePref(HashList **List, StrBuf *ReadBuf)
DestroyPreference(Data);
LastData = NULL;
}
+ Data = NULL;
}
}
GetPrefTypes(*List);