trivial: small cleanup checking error

This commit is contained in:
Dan Williams 2011-12-05 12:14:40 -06:00
parent 2ade420479
commit c1344ec097

View file

@ -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;