openbsd-ports/x11/gnome/libbonoboui/patches/patch-tools_browser_oaf-helper_c
2005-05-24 21:45:26 +00:00

18 lines
457 B
Plaintext

$OpenBSD: patch-tools_browser_oaf-helper_c,v 1.1 2005/05/24 21:45:26 marcm Exp $
--- tools/browser/oaf-helper.c.orig Thu Sep 23 16:21:46 2004
+++ tools/browser/oaf-helper.c Sun Apr 10 00:14:29 2005
@@ -58,10 +58,12 @@ get_lang () {
gchar **search;
lang = getenv ("LANG");
+ if (!lang)
+ return g_strdup ("");
search = g_strsplit (lang, "_", 1);
if (!search)
- return "";
+ return g_strdup ("");
ret = g_strdup_printf ("%s", search[0]);