1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Irssi printed GLib error if no PATH was set..

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2081 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-19 13:55:28 +00:00 committed by cras
parent 78f9c141dc
commit 4978d4cd14

View File

@ -54,7 +54,10 @@ void session_set_binary(const char *path)
}
/* we'll need to find it from path. */
paths = g_strsplit(g_getenv("PATH"), ":", -1);
str = g_getenv("PATH");
if (str == NULL) return;
paths = g_strsplit(str, ":", -1);
for (tmp = paths; *tmp != NULL; tmp++) {
str = g_strconcat(*tmp, G_DIR_SEPARATOR_S, path, NULL);
if (access(str, X_OK) == 0) {