]> git.sur5r.net Git - openocd/commit
flash/nor/tcl: fix segfault on write_image misuse
authorPaul Fertser <fercerpav@gmail.com>
Tue, 25 Feb 2014 17:22:11 +0000 (21:22 +0400)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 29 Mar 2014 06:55:13 +0000 (06:55 +0000)
commit58256d48358ab695e970b5e61546aecb366ad914
tree0eb0bb676d2de4a2db5149b24955457726197dc6
parentd2ddb53f7d3c6c5c3be1f6b41a796033599b1880
flash/nor/tcl: fix segfault on write_image misuse

"flash write_image (unlock|erase)" (without filename) was causing
segmentation fault in strcmp(). This patch fixes it.

Change-Id: Ia3b8c796f4107621d78605c02d2b8e123b1b207b
Reported-by: ajkroll][ <ajkroll][@irc.freenode.net>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1970
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/tcl.c