mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Merge pull request #108 from marcpayne/noipv6-segfault-fix
Close file only if it was successfully opened
This commit is contained in:
commit
9ac60dcc15
@ -643,8 +643,8 @@ int update_net_stats(void)
|
||||
}
|
||||
lastv6->next = NULL;
|
||||
}
|
||||
fclose(file);
|
||||
}
|
||||
fclose(file);
|
||||
#endif /* BUILD_IPV6 */
|
||||
|
||||
first = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user