Skip to content

Commit

Permalink
Account for NULL error when we see G_IO_STATUS_EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
pyhalov authored and sc0w committed Nov 24, 2018
1 parent c6c1db0 commit f8dc9a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions capplets/about-me/mate-about-me-password.c
Expand Up @@ -436,8 +436,10 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi
}

if (g_io_channel_read_chars (source, buf, BUFSIZE, &bytes_read, &error) != G_IO_STATUS_NORMAL) {
g_warning ("IO Channel read error: %s", error->message);
g_error_free (error);
if (error) {
g_warning ("IO Channel read error: %s", error->message);
g_error_free (error);
}

return TRUE;
}
Expand Down

0 comments on commit f8dc9a7

Please sign in to comment.