[Devel] Variable declaration with initialization is preferred
Kir Kolyshkin
kir at openvz.org
Sun Apr 28 21:47:40 PDT 2013
On 04/28/2013 08:31 PM, Igor Podlesny wrote:
> ---
> 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;
Applied, thank you.
More information about the Devel
mailing list