Fix double-free segfault on url retrieve to read-only media (RhBug:557118)
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 21 Jan 2010 11:45:34 +0000 (13:45 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 21 Jan 2010 11:45:34 +0000 (13:45 +0200)
lib/rpminstall.c

index 6b3dde7..568e13f 100644 (file)
@@ -458,7 +458,7 @@ restart:
        case URL_IS_HTTPS:
        case URL_IS_HTTP:
        case URL_IS_FTP:
-       {   char *tfn;
+       {   char *tfn = NULL;
            FD_t tfd;
 
            if (rpmIsVerbose())