9
0
Fork 0
barebox/lib
Sascha Hauer d3f4aa52ca readline: Fix history prev when history is empty
We cannot use list_entry() on an empty list. Without history
we have to return an empty line. This fixes a crash when the
cursor up button is pressed and no command has been entered
previously. Broken since:

commit ada160a34a
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Tue Jul 29 11:54:26 2014 +0200

    readline: reimplement history functions

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported-by: Teresa Gamez <t.gamez@phytec.de>
2014-09-01 14:24:50 +02:00
..
bootstrap move file helper functions to separate file 2014-08-07 06:13:51 +02:00
gui move file helper functions to separate file 2014-08-07 06:13:51 +02:00
lz4 lz4: fix another possible overrun 2014-07-02 08:19:45 +02:00
lzo lzo: properly check for overruns 2014-07-02 08:19:45 +02:00
zlib_inflate Unused files removed 2012-06-30 22:09:49 +02:00
Kconfig vsprintf: Support pU for printing UUIDs 2014-07-11 08:16:02 +02:00
Makefile Merge branch 'for-next/rtc' 2014-08-07 13:13:45 +02:00
bcd.c lib: import 'bcd' from linux-3.15 2014-07-31 07:30:51 +02:00
bch.c lib: add BCH encoding/decoding 2012-01-02 12:34:58 +01:00
bitmap.c lib: Add bitmap functions from kernel 2014-07-17 23:01:15 +02:00
bitrev.c lib: add bitrev utility 2012-01-02 12:34:58 +01:00
bzlib_private.h svn_rev_639 2007-07-05 18:02:12 +02:00
ctype.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
decompress_bunzip2.c misc: upper-case some abbreviations 2014-06-02 09:07:12 +02:00
decompress_inflate.c Add deflate_decompress function 2013-08-07 08:44:48 +02:00
decompress_unlz4.c pbl: add lz4 support 2013-07-22 09:15:32 +02:00
decompress_unlzo.c lzo: Remove unused variable 2014-04-23 14:00:25 +02:00
display_options.c treewide: fix signedness mixups in printf format specifiers 2014-04-23 09:05:51 +02:00
div64.c svn_rev_639 2007-07-05 18:02:12 +02:00
find_next_bit.c U-Boot-V2:Bitops: asm-generic bitops 2008-08-15 08:47:49 +02:00
fnmatch.c fnmatch:sparse fixes 2010-10-21 22:21:22 +02:00
getopt.c getopt: change optstring to const char* 2013-02-11 20:57:34 +01:00
glob.c glob: fix GLOB_SORT 2012-08-03 08:29:38 +02:00
kfifo.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
libbb.c move file helper functions to separate file 2014-08-07 06:13:51 +02:00
libfile.c read_file: introduce read_file_2 2014-08-07 06:13:52 +02:00
libgen.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
libmtd.c mtd: Update internal API to support 64-bit device size 2014-03-12 21:26:37 +01:00
libscan.c libubi: Use global mtd_all_ff function 2013-03-04 10:54:46 +01:00
libubigen.c lib: libubigen math compile error fix 2014-01-06 10:58:00 +01:00
make_directory.c Make errno a positive value 2012-05-14 08:35:54 +02:00
math.c lib: math: Return NULL pointer 2014-02-24 08:59:04 +01:00
misc.c Add beginning wchar support 2014-07-14 08:01:06 +02:00
notifier.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
parameter.c param: Add dev_add_param_string 2014-07-22 08:09:23 +02:00
process_escape_sequence.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
qsort.c qsort: Fix wrong check 2012-08-03 08:28:18 +02:00
random.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
rbtree.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
readkey.c readkey: keys are unsigned char 2014-07-11 08:14:52 +02:00
readline.c readline: Fix history prev when history is empty 2014-09-01 14:24:50 +02:00
readline_simple.c remove undefined WATCHDOG_RESET 2011-12-19 14:38:21 +01:00
recursive_action.c rm: implement -r 2012-11-29 20:21:29 +01:00
show_progress.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
stmp-device.c ARM: MXS: introduce stmp device support 2013-07-23 16:25:13 +02:00
string.c string.c: Fix include 2014-03-29 06:49:47 +01:00
stringlist.c string_list: Add string_list_for_each_entry macro 2014-07-03 09:39:16 +02:00
uncompress.c lib: Add support for LZ4-compressed kernel 2013-07-16 08:24:30 +02:00
unlink-recursive.c unlink_recursive: return negative error value 2014-04-09 09:36:34 +02:00
vsprintf.c vsprintf: Support pU for printing UUIDs 2014-07-11 08:16:02 +02:00
wchar.c Add beginning wchar support 2014-07-14 08:01:06 +02:00
xfuncs.c string: Add (x)memdup 2013-11-27 10:42:54 +01:00
xymodem.c xymodem.c: fix compiler warning 2012-11-26 08:56:25 +01:00