changeset 1152:949457464b28 trunk

[svn] - fix for crash when file extension is not available.
author yaz
date Tue, 29 May 2007 03:58:22 -0700
parents 31ad9abf9606
children b391fddc35b2
files ChangeLog src/tta/libtta.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue May 29 00:59:45 2007 -0700
+++ b/ChangeLog	Tue May 29 03:58:22 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-29 07:59:45 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2468]
+  - fix FD leakage. closes #954.
+  
+  trunk/src/flac/libflac/stream_decoder.c |    2 ++
+  1 file changed, 2 insertions(+)
+
+
 2007-05-29 06:29:02 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2466]
   - fix registration of lastfm session ID
--- a/src/tta/libtta.c	Tue May 29 00:59:45 2007 -0700
+++ b/src/tta/libtta.c	Tue May 29 03:58:22 2007 -0700
@@ -451,7 +451,7 @@
 {
 	gchar *ext = strrchr(filename, '.');
 
-	if (!strncasecmp(ext, ".tta", 4))
+	if (ext && !strncasecmp(ext, ".tta", 4))
 	    return TRUE;
 
 	return FALSE;