Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Werror=maybe-uninitialized in vmod_decode() #2

Open
zmousm opened this issue May 8, 2014 · 0 comments
Open

Werror=maybe-uninitialized in vmod_decode() #2

zmousm opened this issue May 8, 2014 · 0 comments

Comments

@zmousm
Copy link

zmousm commented May 8, 2014

In vmod_decode() h is declared but then is used without being initialized at
https://github.com/fastly/libvmod-urlcode/blob/master/src/vmod_urlcode.c#L111

When built with -Wall -Werror, this leads to:

vmod_urlcode.c: In function 'vmod_decode':
vmod_urlcode.c:74:6: error: 'h' may be used uninitialized in this function [-Werror=maybe-uninitialized]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant