From: Lennart Poettering Date: Thu, 3 Sep 2020 14:56:47 +0000 (+0200) Subject: udev-test: don't mix alloca() and regular C stack allocation in one expression X-Git-Tag: v247-rc1~303^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d81d85a0594f73e64cf222ac3d39c9a4f3dfae9;p=thirdparty%2Fsystemd.git udev-test: don't mix alloca() and regular C stack allocation in one expression --- diff --git a/src/test/test-udev.c b/src/test/test-udev.c index c7d69e07746..006fdb650fe 100644 --- a/src/test/test-udev.c +++ b/src/test/test-udev.c @@ -96,7 +96,8 @@ static int run(int argc, char *argv[]) { assert_se(udev_rules_load(&rules, RESOLVE_NAME_EARLY) == 0); - const char *syspath = strjoina("/sys", devpath); + const char *syspath; + syspath = strjoina("/sys", devpath); r = device_new_from_synthetic_event(&dev, syspath, action); if (r < 0) return log_debug_errno(r, "Failed to open device '%s'", devpath);