diff --git a/src/lib3270/kybd.c b/src/lib3270/kybd.c index 4f28a05..e97e72b 100644 --- a/src/lib3270/kybd.c +++ b/src/lib3270/kybd.c @@ -207,7 +207,7 @@ struct ta * new_ta(H3270 *hSession, enum _ta_type type) { struct ta *ta = new_ta(hSession, TA_TYPE_KEY_AID); - if(ta) + if(!ta) return; ta->args.aid_code = aid_code; -- libgit2 0.21.2