projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
975e2ca
)
parser.y: minor cleanup
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 1 Jun 2018 17:06:34 +0000
(19:06 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 1 Jun 2018 17:06:34 +0000
(19:06 +0200)
src/liboconfig/parser.y
patch
|
blob
|
history
diff --git
a/src/liboconfig/parser.y
b/src/liboconfig/parser.y
index
0afc9b5
..
1b2d6cc
100644
(file)
--- a/
src/liboconfig/parser.y
+++ b/
src/liboconfig/parser.y
@@
-266,12
+266,12
@@
static char *unquote (const char *orig)
{
char *ret = strdup (orig);
if (ret == NULL)
- return
(NULL)
;
+ return
NULL
;
size_t len = strlen (ret);
if ((len < 2) || (ret[0] != '"') || (ret[len - 1] != '"'))
- return
(ret)
;
+ return
ret
;
len -= 2;
memmove (ret, ret + 1, len);
@@
-286,5
+286,5
@@
static char *unquote (const char *orig)
}
}
- return
(ret)
;
+ return
ret
;
} /* char *unquote */