diff options
-rw-r--r-- | src/validator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/validator.c b/src/validator.c index e15f9f3..7a3ed7d 100644 --- a/src/validator.c +++ b/src/validator.c @@ -78,9 +78,7 @@ main (int argc, char *argv[]) if (!g_file_test (filename[i], G_FILE_TEST_IS_REGULAR)) { g_printerr ("%s: file does not exist\n", filename[i]); all_valid = FALSE; - } - - if (!desktop_file_validate (filename[i], warn_kde, no_warn_deprecated, no_hints)) + } else if (!desktop_file_validate (filename[i], warn_kde, no_warn_deprecated, no_hints)) all_valid = FALSE; } |