From: Jouni Malinen Date: Fri, 30 Nov 2018 16:00:31 +0000 (+0200) Subject: EAP DB: Use NULL to clear a pointer X-Git-Tag: hostap_2_7~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02270284442aecabb06d1376ad9bd388b3d3791c;p=thirdparty%2Fhostap.git EAP DB: Use NULL to clear a pointer Avoid a sparse warning from use of a plain integer. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/eap_user_db.c b/src/ap/eap_user_db.c index fab307f7a..296d5c2dd 100644 --- a/src/ap/eap_user_db.c +++ b/src/ap/eap_user_db.c @@ -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); } }