Skip to content

Commit 25d43c6

Browse files
W-M-Rxiaoxiang781216
authored andcommitted
apps/gcov: Alloc to strip 0
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
1 parent bb50852 commit 25d43c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/gcov/gcov.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void show_usage(FAR const char *progname)
7171

7272
static void gcov_dump(FAR const char * path, FAR const char *strip)
7373
{
74-
if (path == NULL || access(path, F_OK) != 0 || atoi(strip) <= 0)
74+
if (path == NULL || access(path, F_OK) != 0 || atoi(strip) < 0)
7575
{
7676
fprintf(stderr, "ERROR: Invalid parameter\n");
7777
return;
@@ -157,7 +157,7 @@ static void gcov_stdout_dump(void)
157157

158158
int main(int argc, FAR char *argv[])
159159
{
160-
FAR const char *strip = "99";
160+
FAR const char *strip = CONFIG_COVERAGE_DEFAULT_PREFIX_STRIP;
161161
FAR const char *path = NULL;
162162
int option;
163163

0 commit comments

Comments
 (0)