summaryrefslogtreecommitdiff
path: root/popt/popt.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1998-07-30 14:18:58 +0000
committerewt <devnull@localhost>1998-07-30 14:18:58 +0000
commit55bcc2c4bbcc85a6bb392066929eb0b7887c7d3b (patch)
treede777a1e38312feca2a35740fa8c0b549bb0f4fb /popt/popt.c
parent63842cc30591b5e7dd62471d14fa0b7e37f175ea (diff)
downloadlibrpm-tizen-55bcc2c4bbcc85a6bb392066929eb0b7887c7d3b.tar.gz
librpm-tizen-55bcc2c4bbcc85a6bb392066929eb0b7887c7d3b.tar.bz2
librpm-tizen-55bcc2c4bbcc85a6bb392066929eb0b7887c7d3b.zip
fixed stupif strdup() mistake
CVS patchset: 2209 CVS date: 1998/07/30 14:18:58
Diffstat (limited to 'popt/popt.c')
-rw-r--r--popt/popt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popt/popt.c b/popt/popt.c
index 7d16614d4..4bfd26c0b 100644
--- a/popt/popt.c
+++ b/popt/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;
}