summaryrefslogtreecommitdiff
path: root/capplets/about-me
diff options
context:
space:
mode:
authorAlexander Pyhalov <[email protected]>2018-11-13 23:37:02 +0300
committermonsta <[email protected]>2019-05-31 15:49:45 +0300
commita90d154ba4c59cb3e52536a3e5196146c41f65be (patch)
treed953bd5815a74d081ca62125de2d994c3e5189e8 /capplets/about-me
parent7090f1be2fd964937883aeabd4269348a41cfb24 (diff)
downloadmate-control-center-a90d154ba4c59cb3e52536a3e5196146c41f65be.tar.bz2
mate-control-center-a90d154ba4c59cb3e52536a3e5196146c41f65be.tar.xz
Account for NULL error when we see G_IO_STATUS_EOF
Diffstat (limited to 'capplets/about-me')
-rw-r--r--capplets/about-me/mate-about-me-password.c6
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;
}