1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 12:27:52 +00:00

Merge pull request #108 from marcpayne/noipv6-segfault-fix

Close file only if it was successfully opened
This commit is contained in:
Brenden Matthews 2015-07-07 15:59:10 -07:00
commit 9ac60dcc15

View File

@ -643,8 +643,8 @@ int update_net_stats(void)
}
lastv6->next = NULL;
}
fclose(file);
}
fclose(file);
#endif /* BUILD_IPV6 */
first = 0;