RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  j...@rpm5.org
  Module: rpm                              Date:   28-Jun-2013 17:33:05
  Branch: rpm-5_4                          Handle: 2013062815330500

  Modified files:           (Branch: rpm-5_4)
    rpm/build               pack.c

  Log:
    - coverity #1035867

  Summary:
    Revision    Changes     Path
    2.324.2.7   +3  -1      rpm/build/pack.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/build/pack.c
  ============================================================================
  $ cvs diff -u -r2.324.2.6 -r2.324.2.7 pack.c
  --- rpm/build/pack.c  28 Jun 2013 15:29:25 -0000      2.324.2.6
  +++ rpm/build/pack.c  28 Jun 2013 15:33:05 -0000      2.324.2.7
  @@ -51,8 +51,10 @@
       int xx;
   
       {        const char *fmode = rpmExpand(fmodeMacro, NULL);
  -     if (!(fmode && fmode[0] == 'w'))
  +     if (!(fmode && fmode[0] == 'w')) {
  +         fmode = _free(fmode);
            fmode = xstrdup("w9.gzdio");
  +     }
        /*@-nullpass@*/
        (void) Fflush(fdo);
        cfd = Fdopen(fdDup(Fileno(fdo)), fmode);
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to