Code

src/utils_mount.c: Fix wrong behavior in cu_mount_getoptionvalue().
authorFlorian Forster <octo@collectd.org>
Wed, 28 Aug 2013 13:18:11 +0000 (15:18 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 28 Aug 2013 13:19:32 +0000 (15:19 +0200)
Github: #412

src/utils_mount.c

index cae3706794737fe438c79132cea13121c22b7ad9..3cede018e243067d5f1bcfb71d5f9e76949b074e 100644 (file)
@@ -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;