Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
549:5a8f8c28871a | 550:adee87ebe853 |
---|---|
35 VFSFile * | 35 VFSFile * |
36 vfs_fopen(const gchar * path, | 36 vfs_fopen(const gchar * path, |
37 const gchar * mode) | 37 const gchar * mode) |
38 { | 38 { |
39 VFSFile *file; | 39 VFSFile *file; |
40 | |
41 if (!path || !mode) | |
42 return NULL; | |
40 | 43 |
41 file = g_new(VFSFile, 1); | 44 file = g_new(VFSFile, 1); |
42 | 45 |
43 file->handle = fopen(path, mode); | 46 file->handle = fopen(path, mode); |
44 | 47 |