hwclock: fix ul_path_scanf() use
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
ddadf4748d
commit
365e006a36
|
@ -441,7 +441,7 @@ get_hardware_delay(const struct hwclock_control *ctl)
|
|||
pc = ul_new_path("/sys/class/rtc/%s", rtcname);
|
||||
if (!pc)
|
||||
goto unknown;
|
||||
rc = ul_path_scanf(pc, "name", "%128[^\n ]", &name);
|
||||
rc = ul_path_scanf(pc, "name", "%128[^\n ]", name);
|
||||
ul_unref_path(pc);
|
||||
|
||||
if (rc != 1 || !*name)
|
||||
|
|
Loading…
Reference in New Issue