mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
libbb: fix thinko in rtc_xopen()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
528808fa7b
commit
d8290c2ef0
@ -76,11 +76,11 @@ int FAST_FUNC rtc_xopen(const char **default_rtc, int flags)
|
||||
rtc = open_loop_on_busy(*default_rtc, flags);
|
||||
if (rtc >= 0)
|
||||
return rtc;
|
||||
name += strlen(name) + 1;
|
||||
if (!name[0])
|
||||
return xopen(*default_rtc, flags);
|
||||
try_name:
|
||||
*default_rtc = name;
|
||||
name += strlen(name) + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user