diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-07 11:58:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-07 11:58:04 +0000 |
commit | 9dac7b6b7b035d55bdb9731795712ead92e11f76 (patch) | |
tree | 8bed4ad4617f95bcdaac75dc43c2b2dd461b3e76 /src/util/os_installation.c | |
parent | 2a534fc5efadca1b65648efb903c3b4c17ac33ad (diff) | |
download | gnunet-9dac7b6b7b035d55bdb9731795712ead92e11f76.tar.gz gnunet-9dac7b6b7b035d55bdb9731795712ead92e11f76.zip |
fixes
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index cc1d61c20..39b5174e3 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -213,14 +213,12 @@ get_path_from_PATH () | |||
213 | char *end; | 213 | char *end; |
214 | char *buf; | 214 | char *buf; |
215 | const char *p; | 215 | const char *p; |
216 | size_t size; | ||
217 | 216 | ||
218 | p = getenv ("PATH"); | 217 | p = getenv ("PATH"); |
219 | if (p == NULL) | 218 | if (p == NULL) |
220 | return NULL; | 219 | return NULL; |
221 | path = GNUNET_strdup (p); /* because we write on it */ | 220 | path = GNUNET_strdup (p); /* because we write on it */ |
222 | buf = GNUNET_malloc (strlen (path) + 20); | 221 | buf = GNUNET_malloc (strlen (path) + 20); |
223 | size = strlen (path); | ||
224 | pos = path; | 222 | pos = path; |
225 | 223 | ||
226 | while (NULL != (end = strchr (pos, ':'))) | 224 | while (NULL != (end = strchr (pos, ':'))) |