We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143c3dc commit d39b48aCopy full SHA for d39b48a
1 file changed
tests/API/probes/test_memusage.c
@@ -29,11 +29,11 @@ static int test_no_unit()
29
30
static int test_invalid_number()
31
{
32
- size_t size;
+ size_t size = 0;
33
char *strval = strdup("www kB\n");
34
int ret = read_common_sizet(&size, strval);
35
free(strval);
36
- return (size == 0 && ret == 0);
+ return (ret == -1);
37
}
38
39
static int test_errno()
0 commit comments