]> granicus.if.org Git - taglib/commitdiff
Don't try to do stuff to files that aren't valid.
authorScott Wheeler <wheeler@kde.org>
Sun, 5 Sep 2004 17:54:00 +0000 (17:54 +0000)
committerScott Wheeler <wheeler@kde.org>
Sun, 5 Sep 2004 17:54:00 +0000 (17:54 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@344196 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

examples/tagreader_c.c

index ab8ad2c6ad010bd1d8d6ac10b66757ea9a03b612..0220e19a423a285b0876209cd0544d7c34eb41d2 100644 (file)
@@ -44,6 +44,10 @@ int main(int argc, char *argv[])
     printf("******************** \"%s\" ********************\n", argv[i]);
 
     file = taglib_file_new(argv[i]);
+
+    if(file == NULL)
+      break;
+
     tag = taglib_file_tag(file);
     properties = taglib_file_audioproperties(file);