-- fix some unitialized errors pointed out by valgrind
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user