aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2014-05-02 09:07:16 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2014-05-02 09:07:16 +0200
commitd8290c2ef039c389b2f39704543277865f3693fb (patch)
tree594e0006970f5291dc49031544fd947f75d6bb3a /libbb
parent528808fa7b0778931fb624e95c38cf8cbc2fff90 (diff)
downloadbusybox-d8290c2ef039c389b2f39704543277865f3693fb.tar.gz
libbb: fix thinko in rtc_xopen()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/rtc.c b/libbb/rtc.c
index f84da09bb..6d06d57f9 100644
--- 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;
}
}