WINGs: fix incorrect usage of direction variable in updateStartForCurrentTextBlock...
commite65f527ad43644a989e5edbf574320191e8933f3
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 18 May 2014 19:31:49 +0000 (18 21:31 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 May 2014 22:01:43 +0000 (18 23:01 +0100)
treeeb0816d95bff42e71f0772ac44dcf3ea34895d56
parent21c891e6691ba20c144c17e96a1970efcfcb60ec
WINGs: fix incorrect usage of direction variable in updateStartForCurrentTextBlock (Coverity #50192)

As pointed by Coverity, the variable 'dir' is passed by reference because
the function may update it; as it is never NULL (the function is local)
checking for that does not make sense. From the actual usage, it seems
logical that the check should have been on the value, not on the pointer.

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