diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-10 02:53:06 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-10 02:53:06 +0000 |
commit | bd00ff54c2bf569de50ff2df433bf90f279321a3 (patch) | |
tree | 3b3fcba93d018c7264ef5961842c410fcf0b10c9 /src/core/session.c | |
parent | ec168a40096427e381c00e0ea04360d71abcf4d6 (diff) | |
download | irssi-bd00ff54c2bf569de50ff2df433bf90f279321a3.zip |
Fixed one error and several warnings with GLIB 2.0
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2663 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/session.c')
-rw-r--r-- | src/core/session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/session.c b/src/core/session.c index 7e7b0afa..b5419134 100644 --- a/src/core/session.c +++ b/src/core/session.c @@ -39,6 +39,7 @@ static char **session_args; void session_set_binary(const char *path) { + const char *envpath; char **paths, **tmp; char *str; @@ -59,10 +60,10 @@ void session_set_binary(const char *path) } /* we'll need to find it from path. */ - str = g_getenv("PATH"); - if (str == NULL) return; + envpath = g_getenv("PATH"); + if (envpath == NULL) return; - paths = g_strsplit(str, ":", -1); + paths = g_strsplit(envpath, ":", -1); for (tmp = paths; *tmp != NULL; tmp++) { str = g_strconcat(*tmp, G_DIR_SEPARATOR_S, path, NULL); if (access(str, X_OK) == 0) { |