From c1344ec0976a46bf754c72b008278f9330e00796 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 5 Dec 2011 12:14:40 -0600 Subject: [PATCH] trivial: small cleanup checking error --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 95d3af03d8..4e216ab7ae 100644 --- a/src/main.c +++ b/src/main.c @@ -268,8 +268,7 @@ parse_state_file (const char *filename, * /var/lib/NetworkManager for us since we have to ensure that * users upgrading NM get this working too. */ - if ( tmp_error->domain == G_FILE_ERROR - && tmp_error->code == G_FILE_ERROR_NOENT) { + if (g_error_matches (tmp_error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) { char *data, *dirname; gsize len = 0;