summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2024-03-01 00:34:19 +0800
committerMole Shang <[email protected]>2024-03-01 22:30:12 +0800
commit6d9c1c8396ef374dce59d4c95199d0155a6fdfa3 (patch)
treea3f661195ccbf01c04aa322ea6b8193c72f66539 /src/main.c
parent749d02bb3474592613d22736615f7530fa420b78 (diff)
downloadhinata-6d9c1c8396ef374dce59d4c95199d0155a6fdfa3.tar.gz
hinata-6d9c1c8396ef374dce59d4c95199d0155a6fdfa3.tar.bz2
hinata-6d9c1c8396ef374dce59d4c95199d0155a6fdfa3.zip
tree-wide: fix uaf bugs
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4930b1c..3410f37 100644
--- a/src/main.c
+++ b/src/main.c
@@ -66,6 +66,7 @@ int main(void) {
if (cookie_datum.ok) {
printf("[tomlc99] Found cookie string in config.toml, applying...\n");
cookie = cookie_datum.u.s;
+ DEBUG_PRINT("Cookie: %s\n", cookie);
}
}
}
@@ -189,5 +190,5 @@ int main(void) {
curl_cleanup(&stat);
nk_glfw3_shutdown(&glfw);
glfwTerminate();
- return 0;
+ exit(0);
}