Commit 19347fa740bee647155398180ef5539c1ef92e2f
1 parent
eaa1bc2f
Exists in
master
and in
3 other branches
De: joão paulo limberger (shoo) para pw3270
Data: 28/01/2016 09:22 Assunto: PW3270 - Segmentation Fault ao informar parâmetro -t / --systype Olá, trabalho com z/VM e gostaria de setar por default o tipo do sistema no servidor para VM/CMS... Mas está resultando falha de segmentação. A solução aparentemente é somente as alteraçõezinhas do anexo..
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
options.c
... | ... | @@ -168,7 +168,7 @@ LIB3270_EXPORT int lib3270_set_host_type(H3270 *hSession, const char *name) |
168 | 168 | |
169 | 169 | for(f=0;f<(sizeof(host_type)/sizeof(host_type[0]));f++) |
170 | 170 | { |
171 | - if(!strcasecmp(host_type[f].name,name)) | |
171 | + if(host_type[f].name && !strcasecmp(host_type[f].name,name)) | |
172 | 172 | { |
173 | 173 | hSession->options &= ~LIB3270_OPTION_HOST_TYPE; |
174 | 174 | hSession->options |= host_type[f].option; | ... | ... |