[Devel] Variable declaration with initialization is preferred
Igor Podlesny
openvz at poige.ru
Sun Apr 28 20:31:49 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 9d47dec..b09edfe 100644
--- a/src/lib/util.c
+++ b/src/lib/util.c
@@ -44,12 +44,11 @@
static const char *unescapestr(char *src)
{
char *p1, *p2;
- int fl;
+ int fl = 0;
if (src == NULL)
return NULL;
p1 = p2 = src;
- fl = 0;
while (*p2) {
if (*p2 == '\\' && !fl) {
fl = 1;
--
1.7.9.5
More information about the Devel
mailing list