Author: dim
Date: Wed Dec 25 00:48:08 2013
New Revision: 259852
URL: http://svnweb.freebsd.org/changeset/base/259852

Log:
  MFC r259724:
  
  Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
  zoulasc) to contrib/file:
  
    don't write a char to a pointer.

Modified:
  stable/9/contrib/file/compress.c
Directory Properties:
  stable/9/contrib/file/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/contrib/file/compress.c
  stable/8/contrib/file/compress.c
Directory Properties:
  stable/10/   (props changed)
  stable/8/contrib/file/   (props changed)

Modified: stable/9/contrib/file/compress.c
==============================================================================
--- stable/9/contrib/file/compress.c    Wed Dec 25 00:40:42 2013        
(r259851)
+++ stable/9/contrib/file/compress.c    Wed Dec 25 00:48:08 2013        
(r259852)
@@ -480,7 +480,7 @@ uncompressbuf(struct magic_set *ms, int 
 #endif
                        free(*newch);
                        n = 0;
-                       newch[0] = '\0';
+                       *newch = NULL;
                        goto err;
                } else {
                        n = r;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to