changeset 670:c92018172bfb trunk

[svn] - don't crash on startup by passing NULL to opendir(2)
author nenolod
date Sun, 18 Feb 2007 03:38:05 -0800
parents efb78a4b6b49
children e6a1ba5185ba
files ChangeLog src/lame/out_lame.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 18 00:09:31 2007 -0800
+++ b/ChangeLog	Sun Feb 18 03:38:05 2007 -0800
@@ -1,3 +1,10 @@
+2007-02-18 08:09:31 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1424]
+  - remove .depend
+  
+  0 files changed
+
+
 2007-02-18 08:07:48 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1422]
   - add lame encoder plugin. not yet hooked up.
--- a/src/lame/out_lame.c	Sun Feb 18 00:09:31 2007 -0800
+++ b/src/lame/out_lame.c	Sun Feb 18 03:38:05 2007 -0800
@@ -216,7 +216,7 @@
     printf("fle_path = %s\n", file_path);
 #endif
     //validate the path
-    if(opendir(file_path) == NULL) { //error
+    if(file_path != NULL && opendir(file_path) == NULL) { //error
 #ifdef DEBUG
 	    printf("file_path freed\n");
 #endif