summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Troan <ewt@src.gnome.org>1998-07-30 14:18:58 +0000
committerErik Troan <ewt@src.gnome.org>1998-07-30 14:18:58 +0000
commitc07ae55c2d6877060f269315d2561d67c036e6e3 (patch)
treef5f217770a2e7a0b0af5886d44114edcfc184daf
parente46762a106dcdd06eb42b33b77512f60a58d9442 (diff)
downloadgnome-common-c07ae55c2d6877060f269315d2561d67c036e6e3.tar.gz
fixed stupif strdup() mistake
svn path=/trunk/; revision=309
-rw-r--r--support/popt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/popt.c b/support/popt.c
index 7d16614..4bfd26c 100644
--- a/support/popt.c
+++ b/support/popt.c
@@ -65,7 +65,7 @@ static char * strerror(int errno) {
void poptSetExecPath(poptContext con, const char * path, int allowAbsolute) {
if (con->execPath) free(con->execPath);
- con->execPath = strdup(con->execPath);
+ con->execPath = strdup(path);
con->execAbsolute = allowAbsolute;
}