vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat May 12 19:38:27 2012 +0300| [9984e74dbff847645ae0e63db96bcd249568b7a4] | committer: Rémi Denis-Courmont
file: do not attempt to open(NULL, ...); (fix #6796) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9984e74dbff847645ae0e63db96bcd249568b7a4 --- modules/access/file.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/modules/access/file.c b/modules/access/file.c index 487c146..e113bfb 100644 --- a/modules/access/file.c +++ b/modules/access/file.c @@ -169,6 +169,8 @@ int FileOpen( vlc_object_t *p_this ) { const char *path = p_access->psz_filepath; + if (unlikely(path == NULL)) + return VLC_EGENERIC; msg_Dbg (p_access, "opening file `%s'", path); fd = vlc_open (path, O_RDONLY | O_NONBLOCK); if (fd == -1) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
