]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP DB: Use NULL to clear a pointer
authorJouni Malinen <jouni@codeaurora.org>
Fri, 30 Nov 2018 16:00:31 +0000 (18:00 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 30 Nov 2018 19:28:19 +0000 (21:28 +0200)
Avoid a sparse warning from use of a plain integer.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/eap_user_db.c

index fab307f7a8bd9bbe0142b61aacf479072c699f4e..296d5c2ddf3116cdde2447a1b142556aa202f44c 100644 (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]) {
                        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);
                }
        }