wIconChangeImageFile find image if block swapped
commit3250144b945bb391270679b4b2e99e66c19c6dbf
authorRodolfo García Peñas (kix) <kix@kix.es>
Sat, 28 Sep 2013 13:33:51 +0000 (28 15:33 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 1 Oct 2013 06:40:05 +0000 (1 08:40 +0200)
treef25ae3f1a1e6c47a87893610050f57c1e54d2cca
parentd6fe27af1512cda685b002474c53b627569683ce
wIconChangeImageFile find image if block swapped

This patch swaps the "if (path)" block to "if (!path)"
therefore, the true block is now "error = 1" and the
false block is the call to get_rimage_from_file function.

The second change is that the "error = 1" statement is
changed to "return 0", because if "error" is "1", then
only the "return !error" statement is used, then we can
change it for "return !1" that is "return 0".

Then, we can move the get_rimage_from_file call out of the
if block.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
src/icon.c