chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tmpfiles: support writing short strings to files, in order to support /sys manipulati...
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index 8004bebbd1c0f0af997924e8d95a97e7deaef66a..fbc37c4f0cdc05a452b7cf1a789d4e2b162e6dbd 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-4118,7
+4118,8
@@
char *unquote(const char *s, const char* quotes) {
size_t l;
assert(s);
- if ((l = strlen(s)) < 2)
+ l = strlen(s);
+ if (l < 2)
return strdup(s);
if (strchr(quotes, s[0]) && s[l-1] == s[0])