From 4f754382782c7bbaaf4bb644ea58df56d9674216 Mon Sep 17 00:00:00 2001 From: Marcus Folkesson Date: Sat, 2 Dec 2017 18:21:03 +0100 Subject: [PATCH] udev-event.c: do not assign s to address to pointer Solve a bug that could result in really nasty behavior. Signed-off-by: Marcus Folkesson Signed-off-by: Anthony G. Basile --- src/udev/udev-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index 19079bf02..4120c04f2 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -201,7 +201,7 @@ subst: _s = s; _l = l; /* temporarily use sbuf */ - s = &sbuf; + s = sbuf; l = UTIL_PATH_SIZE; }