Commit e320eacc5803967b01edd38cde795700a8d29c7e

Authored by Perry Werneck
1 parent e2b3d132
Exists in master and in 1 other branch develop

Small adjustment.

Showing 1 changed file with 2 additions and 6 deletions   Show diff stats
src/network_modules/state.c
@@ -88,12 +88,8 @@ LIB3270_EXPORT const char * lib3270_get_ssl_state_icon_name(const H3270 *hSessio @@ -88,12 +88,8 @@ LIB3270_EXPORT const char * lib3270_get_ssl_state_icon_name(const H3270 *hSessio
88 88
89 LIB3270_EXPORT const char * lib3270_get_ssl_state_description(const H3270 *hSession) { 89 LIB3270_EXPORT const char * lib3270_get_ssl_state_description(const H3270 *hSession) {
90 90
91 - if(hSession->ssl.message) {  
92 -  
93 - if(hSession->ssl.message->body)  
94 - return dgettext(GETTEXT_PACKAGE,hSession->ssl.message->body);  
95 -  
96 - return ""; 91 + if(hSession->ssl.message && hSession->ssl.message->body) {
  92 + return dgettext(GETTEXT_PACKAGE,hSession->ssl.message->body);
97 } 93 }
98 94
99 return ""; 95 return "";