`useless-if-before-free --help' prints a literal
NUL character instead of the backslash-zero that
was intended.  Also, the "must lie within the
first 8 lines" line is on line 9, and hence not
getting automatically updated.  This patch fixes
the former by adding a backslash, and the latter
by condensing the three lines of what-it-does to
a single line, leaving one line of slack for the
future.  (An alternative would be to move the
what-it-does text to appear below the VERSION.)
*** coreutils-8.9/build-aux/useless-if-before-free~	Sat Jan  1 13:19:27 2011
--- coreutils-8.9/build-aux/useless-if-before-free	Sat Jan  8 17:39:57 2011
***************
*** 2,12 ****
    & eval 'exec perl -wST "$0" $argv:q'
      if 0;
  # Detect instances of "if (p) free (p);".
! # Likewise for "if (p != NULL) free (p);".  And with braces.
! # Also detect "if (NULL != p) free (p);".
! # And with 0 in place of NULL.
  
! my $VERSION = '2009-04-16 15:57'; # UTC
  # The definition above must lie within the first 8 lines in order
  # for the Emacs time-stamp write hook (at end) to update it.
  # If you change this file with Emacs, please let the write hook
--- 2,10 ----
    & eval 'exec perl -wST "$0" $argv:q'
      if 0;
  # Detect instances of "if (p) free (p);".
! # Likewise "if (p != 0)", "if (0 != p)", or with NULL; and with braces.
  
! my $VERSION = '2011-01-09 01:39'; # UTC
  # The definition above must lie within the first 8 lines in order
  # for the Emacs time-stamp write hook (at end) to update it.
  # If you change this file with Emacs, please let the write hook
***************
*** 63,69 ****
  
  OPTIONS:
  
!    --list       print only the name of each matching FILE (\0-terminated)
     --name=N     add name N to the list of \`free\'-like functions to detect;
                    may be repeated
  
--- 61,67 ----
  
  OPTIONS:
  
!    --list       print only the name of each matching FILE (\\0-terminated)
     --name=N     add name N to the list of \`free\'-like functions to detect;
                    may be repeated
  

Reply via email to