projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5b49a
)
* make DeleteServInfo NULL pointer aware
author
Wilfried Göesgens
<willi@citadel.org>
Wed, 11 Feb 2009 19:16:16 +0000
(19:16 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Wed, 11 Feb 2009 19:16:16 +0000
(19:16 +0000)
webcit/serv_func.c
patch
|
blob
|
history
diff --git
a/webcit/serv_func.c
b/webcit/serv_func.c
index 4eccf741e689e0cc89dfe8b47f0a9785fb3b8eda..1513bccb1d71e39f36fe00da54a2793616621e03 100644
(file)
--- a/
webcit/serv_func.c
+++ b/
webcit/serv_func.c
@@
-8,6
+8,8
@@
void DeleteServInfo(ServInfo **FreeMe)
{
+ if (*FreeMe == NULL)
+ return;
FreeStrBuf(&(*FreeMe)->serv_nodename);
FreeStrBuf(&(*FreeMe)->serv_humannode);
FreeStrBuf(&(*FreeMe)->serv_fqdn);