apps/gcov: Alloc to strip 0
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
diff --git a/system/gcov/gcov.c b/system/gcov/gcov.c
index 64acb3c..3b66cfc 100644
--- a/system/gcov/gcov.c
+++ b/system/gcov/gcov.c
@@ -71,7 +71,7 @@
static void gcov_dump(FAR const char * path, FAR const char *strip)
{
- if (path == NULL || access(path, F_OK) != 0 || atoi(strip) <= 0)
+ if (path == NULL || access(path, F_OK) != 0 || atoi(strip) < 0)
{
fprintf(stderr, "ERROR: Invalid parameter\n");
return;
@@ -157,7 +157,7 @@
int main(int argc, FAR char *argv[])
{
- FAR const char *strip = "99";
+ FAR const char *strip = CONFIG_COVERAGE_DEFAULT_PREFIX_STRIP;
FAR const char *path = NULL;
int option;