projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
528808f
)
libbb: fix thinko in rtc_xopen()
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 2 May 2014 07:07:16 +0000
(09:07 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 2 May 2014 07:07:16 +0000
(09:07 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/rtc.c
patch
|
blob
|
history
diff --git
a/libbb/rtc.c
b/libbb/rtc.c
index f84da09bb2a92e4bb83bbdbb08d7e610c5a60045..6d06d57f9c212ab2991ace2252cab01da9fded62 100644
(file)
--- a/
libbb/rtc.c
+++ b/
libbb/rtc.c
@@
-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;
}
}