Fix a warning.
authorZoltan Varga <vargaz@gmail.com>
Mon, 14 Aug 2017 04:28:50 +0000 (00:28 -0400)
committerZoltan Varga <vargaz@gmail.com>
Mon, 14 Aug 2017 04:28:50 +0000 (00:28 -0400)
mono/eglib/gmodule-unix.c

index 9dd5eaa3d543be12f59583fe0d439bfbaece2b32..77f8b8dd515195523e50ea6de908cd6caa39209b 100644 (file)
@@ -273,7 +273,7 @@ g_module_close (GModule *module)
 gchar *
 g_module_build_path (const gchar *directory, const gchar *module_name)
 {
-       char *lib_prefix = "";
+       const char *lib_prefix = "";
        
        if (module_name == NULL)
                return NULL;
@@ -281,10 +281,8 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
        if (strncmp (module_name, "lib", 3) != 0)
                lib_prefix = LIBPREFIX;
        
-       if (directory && *directory){ 
-               
+       if (directory && *directory)
                return g_strdup_printf ("%s/%s%s" LIBSUFFIX, directory, lib_prefix, module_name);
-       }
        return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name); 
 }