• P
    ui/curses.c: Clean up nextchr logic · 99a9ef44
    Peter Maydell 提交于
    Coverity identifies that at the top of the while(1) loop
    in curses_refresh() the variable nextchr is always ERR,
    and so the else case of the first if() is dead code.
    Remove this dead code, and narrow the scope of the
    nextchr variable to the place where it's used.
    
    (This confused logic has been present since the curses
    code was added to QEMU in 2008.)
    Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
    Message-id: 1470925407-23850-3-git-send-email-peter.maydell@linaro.org
    Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
    99a9ef44
curses.c 12.2 KB