[Devel] Move variables into a scope where they're used indeed

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


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

diff --git a/src/lib/util.c b/src/lib/util.c
index 420a574..cfdca31 100644
--- a/src/lib/util.c
+++ b/src/lib/util.c
@@ -43,10 +43,10 @@
 
 static const char *unescapestr(char *const src)
 {
-	char *p1, *p2;
-	int fl = 0;
-
 	if (src != NULL) {
+		char *p1, *p2;
+		int fl = 0;
+
 		for (p1 = p2 = src; *p2; ++p2) {
 			if (*p2 == '\\' && !fl)	{
 				fl = 1;
-- 
1.7.9.5




More information about the Devel mailing list