[vlc-devel] commit: Fix stupid logic (CID 13). (Antoine Cellerier )
git version control
git at videolan.org
Fri May 30 14:49:41 CEST 2008
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri May 30 14:51:09 2008 +0200| [deb87a07e5eca0662506ab6500de48c187e2a3e9]
Fix stupid logic (CID 13).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=deb87a07e5eca0662506ab6500de48c187e2a3e9
---
src/config/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/config/file.c b/src/config/file.c
index 202f592..56cda23 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -333,7 +333,7 @@ int __config_LoadConfigFile( vlc_object_t *p_this, const char *psz_module_name )
*****************************************************************************/
int config_CreateDir( vlc_object_t *p_this, const char *psz_dirname )
{
- if( !psz_dirname && !*psz_dirname ) return -1;
+ if( !psz_dirname || !*psz_dirname ) return -1;
if( utf8_mkdir( psz_dirname, 0700 ) == 0 )
return 0;
More information about the vlc-devel
mailing list