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

  Server: rpm5.org                         Name:   Pinto Elia
  Root:   /v/rpm/cvs                       Email:  devzero2...@rpm5.org
  Module: popt                             Date:   18-Jun-2010 17:39:25
  Branch: HEAD                             Handle: 2010061815392400

  Modified files:
    popt                    popt.c

  Log:
    added an assert

  Summary:
    Revision    Changes     Path
    1.149       +2  -1      popt/popt.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: popt/popt.c
  ============================================================================
  $ cvs diff -u -r1.148 -r1.149 popt.c
  --- popt/popt.c       18 Jun 2010 15:09:24 -0000      1.148
  +++ popt/popt.c       18 Jun 2010 15:39:24 -0000      1.149
  @@ -953,6 +953,7 @@
   
       /* Parse comma separated attributes. */
       te = tbuf = xstrdup(s);
  +    assert(te); 
       while ((t = te) != NULL && *t) {
        while (*te != '\0' && *te != ',')
            te++;
  @@ -1213,7 +1214,7 @@
   /**
    * Return argInfo field, handling POPT_ARGFLAG_TOGGLE overrides.
    * @param con                context
  - * @param opt           option
  + * @param *opt           option
    * @return           argInfo
    */
   static unsigned int poptArgInfo(poptContext con, const struct poptOption * 
opt)
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to