diff options
Diffstat (limited to 'x11/gnome-terminal')
-rw-r--r-- | x11/gnome-terminal/files/patch-src_terminal-screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x11/gnome-terminal/files/patch-src_terminal-screen.c b/x11/gnome-terminal/files/patch-src_terminal-screen.c index 3af16e2e3..69c4aa802 100644 --- a/x11/gnome-terminal/files/patch-src_terminal-screen.c +++ b/x11/gnome-terminal/files/patch-src_terminal-screen.c @@ -59,12 +59,12 @@ + name[3] = fgpid; + + if (sysctl (name, 4, NULL, &len, NULL, 0) < 0) -+ return g_strdup (priv->initial_working_directory); ++ return NULL; + freep = kif = g_malloc (len); + if (sysctl (name, 4, kif, &len, NULL, 0) < 0) + { + g_free (freep); -+ return g_strdup (priv->initial_working_directory); ++ return NULL; + } +#else + freep = kinfo_getfile (fgpid, &cnt); |