Commit 2f9a7fe4f2bcdf413d7bb34d4f9fd17fb779b363
1 parent
b28b2767
Exists in
master
and in
3 other branches
Fixing segfault on key pressed on locked terminal.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/lib3270/kybd.c
@@ -207,7 +207,7 @@ struct ta * new_ta(H3270 *hSession, enum _ta_type type) | @@ -207,7 +207,7 @@ struct ta * new_ta(H3270 *hSession, enum _ta_type type) | ||
207 | { | 207 | { |
208 | struct ta *ta = new_ta(hSession, TA_TYPE_KEY_AID); | 208 | struct ta *ta = new_ta(hSession, TA_TYPE_KEY_AID); |
209 | 209 | ||
210 | - if(ta) | 210 | + if(!ta) |
211 | return; | 211 | return; |
212 | 212 | ||
213 | ta->args.aid_code = aid_code; | 213 | ta->args.aid_code = aid_code; |