projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d4fd00
)
uterm: vt: correctly initialize ret to 0
author
David Herrmann
<dh.herrmann@googlemail.com>
Sun, 1 Jul 2012 14:11:10 +0000
(16:11 +0200)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Sun, 1 Jul 2012 14:11:10 +0000
(16:11 +0200)
We need to return "true", not "false" if a mode is unknown. Otherwise, we
will block the VT subsystem.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_vt.c
patch
|
blob
|
history
diff --git
a/src/uterm_vt.c
b/src/uterm_vt.c
index
9da84b6
..
ef70468
100644
(file)
--- a/
src/uterm_vt.c
+++ b/
src/uterm_vt.c
@@
-93,7
+93,7
@@
static bool vt_event(struct kmscon_vt *ovt, enum kmscon_vt_action action,
void *data)
{
struct uterm_vt *vt = data;
- int ret =
true
;
+ int ret =
0
;
switch (action) {
case KMSCON_VT_ENTER: