util: simplify the code for 'find_terminal_emulator' (Coverity #50076)
commitb9eb99ca732345a3fb32690d53b301f42aaf881a
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 16 Jun 2014 18:15:16 +0000 (16 20:15 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 16 Jun 2014 19:00:08 +0000 (16 20:00 +0100)
tree6011b6697759a0e61dd2d14da302c52c258678a7
parent382337c980ce7bb57f3859a86cfb3cf45a479965
util: simplify the code for 'find_terminal_emulator' (Coverity #50076)

As pointed by Coverity, the code was making an explicit use of a null
pointer, which is certainly not what was initially expected. The code was
simplified to fix the case and to make it easier to understand and
maintain.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
util/wmmenugen_misc.c