Oops, configuring wrong ts in rpm.ts() initialization
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 10 Oct 2009 09:36:38 +0000 (12:36 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 10 Oct 2009 09:36:38 +0000 (12:36 +0300)
python/rpmts-py.c

index 7971d1c..0ac6a5c 100644 (file)
@@ -697,16 +697,15 @@ static int rpmts_init(rpmtsObject *s, PyObject *args, PyObject *kwds)
     char * rootDir = "/";
     rpmVSFlags vsflags = rpmExpandNumeric("%{?__vsflags}");
     char * kwlist[] = {"rootdir", "vsflags", 0};
-    rpmts ts = NULL;
 
     if (!PyArg_ParseTupleAndKeywords(args, kwds, "|si:rpmts_new", kwlist,
            &rootDir, &vsflags))
        return -1;
 
-    (void) rpmtsSetRootDir(ts, rootDir);
+    (void) rpmtsSetRootDir(s->ts, rootDir);
     /* XXX: make this use common code with rpmts_SetVSFlags() to check the
      *      python objects */
-    (void) rpmtsSetVSFlags(ts, vsflags);
+    (void) rpmtsSetVSFlags(s->ts, vsflags);
 
     return 0;
 }