[Devel] Now it's good call for for()
Igor Podlesny
openvz at poige.ru
Sun Apr 28 20:31:53 PDT 2013
---
src/lib/util.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/lib/util.c b/src/lib/util.c
index cc42d7e..8cc066b 100644
--- a/src/lib/util.c
+++ b/src/lib/util.c
@@ -48,15 +48,14 @@ static const char *unescapestr(char *const src)
if (src == NULL)
return NULL;
- p1 = p2 = src;
- while (*p2) {
+
+ for (p1 = p2 = src; *p2; ++p2) {
if (*p2 == '\\' && !fl) {
fl = 1;
} else {
*p1++ = *p2;
fl = 0;
}
- p2++;
}
*p1 = 0;
--
1.7.9.5
More information about the Devel
mailing list