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 cae3706..3cede01 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;