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

Werror=maybe-uninitialized in vmod_decode() #2

@zmousm

Description

@zmousm

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions