libuci: fix false positive warning on older gcc versions master
authorFelix Fietkau <nbd@nbd.name>
Tue, 28 Jan 2025 18:55:25 +0000 (19:55 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 28 Jan 2025 18:56:34 +0000 (19:56 +0100)
commitf3fc0b76040685829191debc03edf72f486ae8ae
tree9f81e387311ccd73d6c4ce004b5a2215f6a8a14b
parent16ff0badbde7e17ec3bd1f827ffe45922956cf86
libuci: fix false positive warning on older gcc versions

Fixes the following warning:

  libuci.c: In function 'uci_set_conf2dir':
  libuci.c:97:59: error: argument 'dir' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
     97 | int uci_set_conf2dir(struct uci_context *ctx, const char *dir)
        |                                               ~~~~~~~~~~~~^~~
  cc1: all warnings being treated as errors

Reported-by: Matthias Franck <matthias.franck@softathome.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
libuci.c