uterm: vt: fix not overwriting 'ret' in error paths
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 11 Nov 2012 10:33:19 +0000 (11:33 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 11 Nov 2012 10:33:19 +0000 (11:33 +0100)
commitb27b3a9a163ca8be75b968c4de573206ba91c655
tree13a559e9a54c86dbf0a17c83530070f549be893b
parentf96870fe902be4824527ec41e0f4f9ec1bc765ef
uterm: vt: fix not overwriting 'ret' in error paths

We cannot use 'ret' in error paths, otherwise, we might return 0. This
might then cause instabilities as the objects weren't initialized
correctly.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_vt.c