From: Florian Forster Date: Wed, 28 Aug 2013 13:18:11 +0000 (+0200) Subject: src/utils_mount.c: Fix wrong behavior in cu_mount_getoptionvalue(). X-Git-Tag: collectd-5.4.1~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3dcfbf12d5ec0b62bc540ac59944ddf50c37c1f2;p=collectd.git src/utils_mount.c: Fix wrong behavior in cu_mount_getoptionvalue(). Github: #412 --- diff --git a/src/utils_mount.c b/src/utils_mount.c index cae37067..3cede018 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -752,9 +752,6 @@ cu_mount_getoptionvalue(char *line, char *keyword) r += strlen(keyword); p = strchr(r, ','); if(p == NULL) { - if(strlen(r) == 0) { - return NULL; - } return sstrdup(r); } else { char *m;