about summary refs log tree commit diff
path: root/wcsmbs
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wcsmbsload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wcsmbs/wcsmbsload.c b/wcsmbs/wcsmbsload.c
index b152b3541c..51c7ef5051 100644
--- a/wcsmbs/wcsmbsload.c
+++ b/wcsmbs/wcsmbsload.c
@@ -182,8 +182,8 @@ __wcsmbs_load_conv (const struct locale_data *new_category)
 	     since the internal character set is supposed to be able to
 	     represent all others.  */
 	  new_towc = getfct ("INTERNAL", complete_name);
-	  if (new_towc != NULL)
-	    new_tomb = getfct (complete_name, "INTERNAL");
+	  new_tomb = (new_towc != NULL
+		      ? getfct (complete_name, "INTERNAL") : NULL);
 
 	  /* If any of the conversion functions is not available we don't
 	     use any since this would mean we cannot convert back and