RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm/build/ names.c

From: Anders F. Björklund <afb@rpm5.org>
Date: Tue 27 Nov 2007 - 21:11:05 CET
Message-Id: <20071127201105.08CE4348465@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Anders F. Björklund
  Root:   /v/rpm/cvs                       Email:  afb@rpm5.org
  Module: rpm                              Date:   27-Nov-2007 21:11:05
  Branch: HEAD                             Handle: 2007112720110400

  Modified files:
    rpm/build               names.c

  Log:
    explicitly initialize static variable

  Summary:
    Revision    Changes     Path
    1.35        +1  -1      rpm/build/names.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/build/names.c
  ============================================================================
  $ cvs diff -u -r1.34 -r1.35 names.c
  --- rpm/build/names.c	4 Nov 2007 01:29:23 -0000	1.34
  +++ rpm/build/names.c	27 Nov 2007 20:11:04 -0000	1.35
  @@ -208,7 +208,7 @@
   
   uint32_t * getBuildTime(void)
   {
  -    static uint32_t buildTime[1];
  +    static uint32_t buildTime[1] = { 0 };
   
   /*@-boundsread@*/
       if (buildTime[0] == 0)
  @@ .
Received on Tue Nov 27 21:11:05 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.