From: Scott Wheeler Date: Sun, 5 Sep 2004 17:54:00 +0000 (+0000) Subject: Don't try to do stuff to files that aren't valid. X-Git-Tag: v1.5~325 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20fb2bd1ecc5d02bd3068d44dde7692e486013dd;p=taglib Don't try to do stuff to files that aren't valid. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@344196 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/examples/tagreader_c.c b/examples/tagreader_c.c index ab8ad2c6..0220e19a 100644 --- a/examples/tagreader_c.c +++ b/examples/tagreader_c.c @@ -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);