mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
sd-journal: check retval of sd_id128_from_string call
Fixes: CID#1469712 CID 1469712 (#1 of 1): Unused value (UNUSED_VALUE) returned_value: Assigning value from sd_id128_from_string(word + 2, &boot_id) to r here, but that stored value is overwritten before it can be used.
This commit is contained in:
parent
2f4ad53549
commit
c9f5ac0917
@ -987,6 +987,8 @@ _public_ int sd_journal_seek_cursor(sd_journal *j, const char *cursor) {
|
||||
case 'b':
|
||||
boot_id_set = true;
|
||||
r = sd_id128_from_string(word + 2, &boot_id);
|
||||
if (r < 0)
|
||||
return r;
|
||||
break;
|
||||
|
||||
case 'm':
|
||||
|
Loading…
x
Reference in New Issue
Block a user