summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be78604)
raw | patch | inline | side by side (parent: be78604)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 20:18:27 +0000 (21:18 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 07:41:32 +0000 (08:41 +0100) |
CID #38025
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/utils_mount.c | patch | blob | history |
diff --git a/src/utils_mount.c b/src/utils_mount.c
index 6e6644f4cd9d413bc3b88fad850b99b54f03fb92..7b4c9276b876d23bd8eb578bc152489579fdc7d3 100644 (file)
--- a/src/utils_mount.c
+++ b/src/utils_mount.c
char *
cu_mount_checkoption(char *line, char *keyword, int full)
{
- char *line2, *l2;
- int l = strlen(keyword);
- char *p1, *p2;
+ char *line2, *l2, *p1, *p2;
+ int l;
if(line == NULL || keyword == NULL) {
return NULL;
}
+
if(full != 0) {
full = 1;
}
l2++;
}
+ l = strlen(keyword);
p1 = line - 1;
p2 = strchr(line, ',');
do {