WPrefs: make fall-back value look like a fall-back value in Texture Panel (Coverity...
commitc5744aaa8b047f0f3f58422a00ba3f03f0d2912b
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 31 May 2014 17:58:39 +0000 (31 19:58 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 31 May 2014 18:25:58 +0000 (31 19:25 +0100)
treeae7a67ff2e203db603b0de62aa62f50d34a50c90
parentdb9f5c9658b5b97939fdb01407c2388cb99cc416
WPrefs: make fall-back value look like a fall-back value in Texture Panel (Coverity #50031)

As pointed by Coverity, the return value of 'sscanf' is not checked, which
may not be a problem because the fall-back value for 'i' is provided before.

However, if sscanf fails there is no guarantee that all implementation would
leave 'i' untouched in case of parsing error, and for convenience it is more
logical to write the code is such a way that the value assignment looks like
the fall-back value it is.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/TexturePanel.c