Assign flag not number for flag types (we got away with it so far

because that are a union). From Filipe Brandenburger.
This commit is contained in:
nicm 2015-09-24 07:02:18 +00:00
parent dc66795e35
commit ddb2d1221b

View File

@ -451,7 +451,7 @@ tty_term_find(char *name, int fd, char **cause)
if (n == -1)
break;
code->type = TTYCODE_FLAG;
code->value.number = n;
code->value.flag = n;
break;
}
}