[Top][All Lists]

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

[Bug-wget] [PATCH] fix warning and possible invalid free

From: TeeRasen
Subject: [Bug-wget] [PATCH] fix warning and possible invalid free
Date: Thu, 12 Apr 2012 10:23:23 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

In main.c we have
          opt.progress_type = "dot";

gcc warns about that...

        main.c:1302:29: warning: assignment discards 'const' qualifier from 
pointer target type [enabled by default]

...and is right since opt.progress_type is malloced/freed somewhere else:

        xfree_null (opt.progress_type);
        opt.progress_type = xstrdup (val);

Attachment: main.diff
Description: Text Data

reply via email to

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