mirror of
https://github.com/linux-msm/qbootctl
synced 2024-11-23 14:43:29 +08:00
Fix segfault originating in get_suffix function
Some callers try to print the return value from here, printf %s NULL, ends up being a segfault.
This commit is contained in:
parent
9d7600df51
commit
20572c1417
@ -412,7 +412,7 @@ int mark_boot_successful(unsigned slot)
|
||||
const char *get_suffix(unsigned slot)
|
||||
{
|
||||
if (boot_control_check_slot_sanity(slot) != 0)
|
||||
return NULL;
|
||||
return "";
|
||||
else
|
||||
return slot_suffix_arr[slot];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user