[Devel] Moved increment in both condition branches out of them

Igor Podlesny openvz at poige.ru
Sun Apr 28 20:31:51 PDT 2013


---
 src/lib/util.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/util.c b/src/lib/util.c
index a835da9..17f618e 100644
--- a/src/lib/util.c
+++ b/src/lib/util.c
@@ -52,12 +52,12 @@ static const char *unescapestr(char *const src)
 	while (*p2) {
 		if (*p2 == '\\' && !fl)	{
 			fl = 1;
-			p2++;
 		} else {
 			*p1 = *p2;
-			p1++; p2++;
+			p1++;
 			fl = 0;
 		}
+		p2++;
 	}
 	*p1 = 0;
 
-- 
1.7.9.5




More information about the Devel mailing list