mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 08:10:17 +01:00
trivial: small cleanup checking error
This commit is contained in:
parent
2ade420479
commit
c1344ec097
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue