Removed a g_return_if_fail.

* fsusage.c: (get_partition): Removed a g_return_if_fail.
This commit is contained in:
Benoît Dejean
2005-03-29 13:16:58 +00:00
parent bbc10e3790
commit 59fd67c7e0
2 changed files with 6 additions and 1 deletions

View File

@@ -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):

View File

@@ -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))
{ {