[Devel] In C we can use "foo = bar = ...; " and it's more readable actually

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


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

diff --git a/src/lib/util.c b/src/lib/util.c
index 75a2fe7..9d47dec 100644
--- a/src/lib/util.c
+++ b/src/lib/util.c
@@ -48,8 +48,7 @@ static const char *unescapestr(char *src)
 
 	if (src == NULL)
 		return NULL;
-	p2 = src;
-	p1 = p2;
+	p1 = p2 = src;
 	fl = 0;
 	while (*p2) {
 		if (*p2 == '\\' && !fl)	{
-- 
1.7.9.5




More information about the Devel mailing list