summaryrefslogtreecommitdiff
path: root/lib/misc.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-03 13:51:57 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-03 13:51:57 +0300
commit50f34a622edc4d737d671622401f7dad44a10d62 (patch)
treebf6e0567b5fe654c43262d57535ef81578a68473 /lib/misc.c
parented859877a5bcaff3ff3ac40ed39a48d1149471a9 (diff)
downloadrpm-50f34a622edc4d737d671622401f7dad44a10d62.tar.gz
rpm-50f34a622edc4d737d671622401f7dad44a10d62.tar.bz2
rpm-50f34a622edc4d737d671622401f7dad44a10d62.zip
Rip doputenv() for good
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/misc.c b/lib/misc.c
index d8e9679da..841d48a60 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -34,13 +34,4 @@ rpmRC rpmMkdirPath (const char * dpath, const char * dname)
return RPMRC_OK;
}
-int doputenv(const char *str)
-{
- char * a;
-
- /* FIXME: this leaks memory! */
- a = xmalloc(strlen(str) + 1);
- strcpy(a, str);
- return putenv(a);
-}