Skip to content
Snippets Groups Projects
  • Sebastian Huber's avatar
    f9b59dd8
    gcov: Use xstrdup() · f9b59dd8
    Sebastian Huber authored
    Move duplication of filename to caller and use xstrdup() instead of custom
    code.  This helps to reuse read_gcda_file() for other purposes.
    
    libgcc/
    
    	* libgcov-util.c (read_gcda_file): Do not duplicate filename.
    	(ftw_read_file): Duplicate filename for read_gcda_file().
    f9b59dd8
    History
    gcov: Use xstrdup()
    Sebastian Huber authored
    Move duplication of filename to caller and use xstrdup() instead of custom
    code.  This helps to reuse read_gcda_file() for other purposes.
    
    libgcc/
    
    	* libgcov-util.c (read_gcda_file): Do not duplicate filename.
    	(ftw_read_file): Duplicate filename for read_gcda_file().
libgcov-util.c 36.50 KiB