[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | Draft: Small fixes (!505)

From: @rockdaboot
Subject: Re: wget2 | Draft: Small fixes (!505)
Date: Sat, 25 Jun 2022 17:32:46 +0000

Tim Rühsen started a new discussion on examples/getstream.c: 

>       // If you are looking for header that are ignored by libwget, parse 
> them yourself.
>       if (resp->header) {
> -             char key[64], value[128];
> +             char key[64], value[128] = "";

Looking closer at the code: The loop body is only executed if the sscanf() was 
successful, which means `key` and `value` are both initialized. There is also 
no need for `*value = 0;`.

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]