EAP DB: Use NULL to clear a pointer
Avoid a sparse warning from use of a plain integer. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
810bedf23f
commit
0227028444
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ static int get_user_cb(void *ctx, int argc, char *argv[], char *col[])
|
|||
} else if (os_strcmp(col[i], "remediation") == 0 && argv[i]) {
|
||||
user->remediation = strlen(argv[i]) > 0;
|
||||
} else if (os_strcmp(col[i], "t_c_timestamp") == 0 && argv[i]) {
|
||||
user->t_c_timestamp = strtol(argv[i], 0, 10);
|
||||
user->t_c_timestamp = strtol(argv[i], NULL, 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue