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:
Jouni Malinen 2018-11-30 18:00:31 +02:00 committed by Jouni Malinen
parent 810bedf23f
commit 0227028444

View file

@ -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]) { } else if (os_strcmp(col[i], "remediation") == 0 && argv[i]) {
user->remediation = strlen(argv[i]) > 0; user->remediation = strlen(argv[i]) > 0;
} else if (os_strcmp(col[i], "t_c_timestamp") == 0 && argv[i]) { } 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);
} }
} }