summaryrefslogtreecommitdiff
path: root/lib/rpmrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmrc.c')
-rw-r--r--lib/rpmrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index bdea7ca12..94872e81e 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -1191,7 +1191,7 @@ void rpmRebuildTargetVars(const char **buildtarget, const char ** canontarget)
if (co == NULL) {
const char *o;
defaultMachine(NULL, &o);
- co = (o) ? xstrdup(co) : NULL;
+ co = (o) ? xstrdup(o) : NULL;
}
for (x = 0; co[x]; x++)
co[x] = tolower(co[x]);