]> git.sesse.net Git - vlc/commitdiff
Remove unusefull variable and test
authorChristophe Mutricy <xtophe@videolan.org>
Sun, 18 Dec 2005 12:01:15 +0000 (12:01 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 18 Dec 2005 12:01:15 +0000 (12:01 +0000)
src/misc/modules.c

index 5e48bae07bebd41d298c520c51e363a86678da0e..1b692ae008a86ca51d29d8a2eb9c1a7bc1e6bfaf 100644 (file)
@@ -2124,17 +2124,11 @@ void CacheSaveConfig( module_t *p_module, FILE *file )
 static char *CacheName( void )
 {
     static char psz_cachename[32];
-    static vlc_bool_t b_initialised = VLC_FALSE;
-
-    if( !b_initialised )
-    {
-        /* Code int size, pointer size and endianness in the filename */
-        int32_t x = 0xbe00001e;
-        sprintf( psz_cachename, "plugins-%.2x%.2x%.2x.dat", sizeof(int),
-                 sizeof(void *), (unsigned int)((unsigned char *)&x)[0] );
-        b_initialised = VLC_TRUE;
-    }
 
+    /* Code int size, pointer size and endianness in the filename */
+    int32_t x = 0xbe00001e;
+    sprintf( psz_cachename, "plugins-%.2x%.2x%.2x.dat", sizeof(int),
+             sizeof(void *), (unsigned int)((unsigned char *)&x)[0] );
     return psz_cachename;
 }