mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
Add braces to eliminate an ambiguous else warning.
Thu Jan 21 12:40:11 EST 1999 Jeff Garzik <jgarzik@pobox.com> * gmodule/gmodule-dl.c (_g_module_build_path): Add braces to eliminate an ambiguous else warning. * tests/{Makefile.am, string-test.c, strfunc-test.c}: Separate string and strfunc tests, working towards goal of having separate test for each of the GLib modules. Add a couple GString length tests.
This commit is contained in:
committed by
Jeff Garzik
parent
55fa3d1112
commit
dc22ea7760
@@ -125,12 +125,12 @@ static gchar*
|
||||
_g_module_build_path (const gchar *directory,
|
||||
const gchar *module_name)
|
||||
{
|
||||
if (directory && *directory)
|
||||
if (directory && *directory) {
|
||||
if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strconcat (directory, "/", module_name, NULL);
|
||||
else
|
||||
return g_strconcat (directory, "/lib", module_name, ".so", NULL);
|
||||
else if (strncmp (module_name, "lib", 3) == 0)
|
||||
} else if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strdup (module_name);
|
||||
else
|
||||
return g_strconcat ("lib", module_name, ".so", NULL);
|
||||
|
Reference in New Issue
Block a user