diff libaudacious/vfs_stdio.c @ 550:adee87ebe853 trunk

[svn] Sanity checking inside vfs_() functions.
author nenolod
date Mon, 30 Jan 2006 05:44:27 -0800
parents cb178e5ad177
children 86ca43d8a845
line wrap: on
line diff
--- a/libaudacious/vfs_stdio.c	Sun Jan 29 14:17:45 2006 -0800
+++ b/libaudacious/vfs_stdio.c	Mon Jan 30 05:44:27 2006 -0800
@@ -38,6 +38,9 @@
 {
     VFSFile *file;
 
+    if (!path || !mode)
+	return NULL;
+
     file = g_new(VFSFile, 1);
 
     file->handle = fopen(path, mode);