[glib] Remove a redundant NULL check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Remove a redundant NULL check
- Date: Wed, 15 Jun 2011 01:07:27 +0000 (UTC)
commit 9b68d9892a125e00958ff019d5edcf4f6b409cf8
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 20:36:37 2011 -0400
Remove a redundant NULL check
gmodule/gmodule.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c
index 3e076ec..5216138 100644
--- a/gmodule/gmodule.c
+++ b/gmodule/gmodule.c
@@ -493,9 +493,8 @@ g_module_open (const gchar *file_name,
{
gchar *error;
- error = g_strconcat ("GModule (",
- file_name ? file_name : "NULL",
- ") initialization check failed: ",
+ error = g_strconcat ("GModule (", file_name, ") ",
+ "initialization check failed: ",
check_failed, NULL);
g_module_close (module);
module = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]