From: Sebastian Huber Date: Thu, 31 Mar 2022 06:10:37 +0000 (+0200) Subject: gcov: Reword comment for gcov_read_string() X-Git-Tag: upstream/12.2.0~767 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63cd7cef7e0f49fa557c5f694dbbd2e68de1f822;p=platform%2Fupstream%2Fgcc.git gcov: Reword comment for gcov_read_string() gcc/ * gcov-io.cc (gcov_read_string): Reword documentation comment. --- diff --git a/gcc/gcov-io.cc b/gcc/gcov-io.cc index c2e9e2b6..72c40f8 100644 --- a/gcc/gcov-io.cc +++ b/gcc/gcov-io.cc @@ -473,9 +473,9 @@ mangle_path (char const *base) /* We need to expose the below function when compiling for gcov-tool. */ #if !IN_LIBGCOV || defined (IN_GCOV_TOOL) -/* Read string from coverage file. Returns a pointer to a static - buffer, or NULL on empty string. You must copy the string before - calling another gcov function. */ +/* Read string from coverage file. Allocate the buffer for the string + from the heap or die. Return a pointer to the string, or NULL on + empty string. */ GCOV_LINKAGE const char * gcov_read_string (void)