Removed a g_return_if_fail.
* fsusage.c: (get_partition): Removed a g_return_if_fail.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2005-03-29 Benoît Dejean <TazForEver@dlfp.org>
|
||||||
|
|
||||||
|
* fsusage.c: (get_partition): Removed a g_return_if_fail.
|
||||||
|
|
||||||
2005-03-27 Benoît Dejean <TazForEver@dlfp.org>
|
2005-03-27 Benoît Dejean <TazForEver@dlfp.org>
|
||||||
|
|
||||||
* loadavg.c: (glibtop_get_loadavg_s):
|
* loadavg.c: (glibtop_get_loadavg_s):
|
||||||
|
@@ -38,7 +38,8 @@ get_partition(const char *mountpoint)
|
|||||||
if(stat(mountpoint, &statb) == -1)
|
if(stat(mountpoint, &statb) == -1)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
g_return_val_if_fail((partitions = fopen("/proc/partitions", "r")), NULL);
|
if((partitions = fopen("/proc/partitions", "r")) == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
while(fgets(line, sizeof line, partitions))
|
while(fgets(line, sizeof line, partitions))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user