From 20fb2bd1ecc5d02bd3068d44dde7692e486013dd Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Sun, 5 Sep 2004 17:54:00 +0000 Subject: [PATCH] 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 --- examples/tagreader_c.c | 4 ++++ 1 file changed, 4 insertions(+) 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);