[gnome-applets] multiload: update previous patch
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] multiload: update previous patch
- Date: Thu, 28 Aug 2014 12:37:46 +0000 (UTC)
commit 2eb7795050b08bdd3f9053d2a28121ec72814623
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Aug 28 15:37:31 2014 +0300
multiload: update previous patch
multiload/linux-proc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/multiload/linux-proc.c b/multiload/linux-proc.c
index 431dbea..af521f9 100644
--- a/multiload/linux-proc.c
+++ b/multiload/linux-proc.c
@@ -291,6 +291,9 @@ is_net_device_virtual(char *device)
gboolean ret = FALSE;
char *path = malloc (strlen (device) + strlen ("/sys/class/net//device") + 1);
+ if (path == NULL)
+ return FALSE;
+
/* Check if /sys/class/net/name-of-dev/ exists (may be old linux kernel
* or not linux at all). */
do {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]