← Commit list

d8290c2ef

Denys Vlasenko
Denys Vlasenko
2014-05-02
SUCCESS Duration: 155s

Subject

libbb: fix thinko in rtc_xopen()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/rtc.c+1 -1
@@ -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;
}
}