diff options
author | Alexander Pyhalov <[email protected]> | 2018-11-13 23:37:02 +0300 |
---|---|---|
committer | ZenWalker <[email protected]> | 2018-11-24 13:36:06 +0100 |
commit | f8dc9a730ffe84e4903869621bcb57f8026182bf (patch) | |
tree | dc4206c3db1d4b3321a16bbcc4214c2602afa98c /capplets | |
parent | c6c1db08970f009fcf2867a1ad2d4556485453ca (diff) | |
download | mate-control-center-f8dc9a730ffe84e4903869621bcb57f8026182bf.tar.bz2 mate-control-center-f8dc9a730ffe84e4903869621bcb57f8026182bf.tar.xz |
Account for NULL error when we see G_IO_STATUS_EOF
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/about-me/mate-about-me-password.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index abac117d..c2e1242d 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -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; } |