Author: allanjude Date: Sat Sep 5 19:28:41 2015 New Revision: 287491 URL: https://svnweb.freebsd.org/changeset/base/287491
Log: Fix build error on gcc platforms Approved by: bapt (mentor) Modified: head/usr.bin/procstat/procstat_kstack.c Modified: head/usr.bin/procstat/procstat_kstack.c ============================================================================== --- head/usr.bin/procstat/procstat_kstack.c Sat Sep 5 18:36:23 2015 (r287490) +++ head/usr.bin/procstat/procstat_kstack.c Sat Sep 5 19:28:41 2015 (r287491) @@ -131,6 +131,7 @@ kstack_cleanup_encoded(const char *old, cp_new++; } } + *cp_new = '\0'; cp_tofree = cp_loop = strdup(new); } else cp_tofree = cp_loop = strdup(old); @@ -138,7 +139,6 @@ kstack_cleanup_encoded(const char *old, if (strlen(cp_line) != 0 && *cp_line != 127) xo_emit("{le:token/%s}", cp_line); } - *cp_new = '\0'; free(cp_tofree); } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"