mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
udev-test: don't mix alloca() and regular C stack allocation in one expression
This commit is contained in:
parent
1e7a67ec22
commit
7d81d85a05
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user