Commit a99285bd63bd897d208807408036eac6c08f25f4

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

Fixing segfault when getting instrospection in an offline terminal.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
server/src/core/linux/gobject.c
... ... @@ -255,7 +255,7 @@ H3270 * ipc3270_get_session(GObject *object) {
255 255 }
256 256  
257 257 void ipc3270_set_error(GObject *object, int errcode, GError **error) {
258   - if(!*error)
  258 + if(error && !*error)
259 259 g_set_error(error,IPC3270(object)->error_domain,errcode,"%s",strerror(errcode));
260 260 }
261 261  
... ...