-- fix some unitialized errors pointed out by valgrind

This commit is contained in:
pfelt
2010-05-31 22:00:48 +00:00
parent 42d739f872
commit 1d56fb4056
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ SetDocProp(StoreClient *client, StoreObject *doc, char *pname, char *value)
info.type = STORE_PROP_NONE;
info.name = pname;
info.value = value;
info.table = STORE_PROPTABLE_NONE;
StorePropertyFixup(&info);
StoreObjectSetProperty(client, doc, &info);
}
+1
View File
@@ -119,6 +119,7 @@ get_ifi_info(int family, int doaliases)
len = 100 * sizeof(struct ifreq); /* initial buffer size guess */
for ( ; ; ) {
buf = malloc(len);
memset(buf, 0, len);
ifc.ifc_len = len;
ifc.ifc_buf = buf;
if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) {
+1
View File
@@ -105,6 +105,7 @@ void XplSignalCatcher(XplShutdownFunc XplShutdownFunction)
ApplicationXplShutdownFunction = XplShutdownFunction;
sigemptyset(&act.sa_mask);
sigemptyset(&signalSet);
for (i=0; _XplSignalList[i] != 0; i++) {
sigaddset(&signalSet, _XplSignalList[i]);