summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-12-20 21:57:47 +0100
committerKim Woelders <kim@woelders.dk>2021-12-21 06:05:18 +0100
commitf1bef7ae01145761f03e85dac112d3af049c6a71 (patch)
treea030faf8c0ca24f2d172274921feffcd2cd3c400
parent82bbd0a278ff5fa2fcf7c5f29875b5ea29bb9ea9 (diff)
downloadimlib2-f1bef7ae01145761f03e85dac112d3af049c6a71.tar.gz
debug: Avoid use of uninitialized data
-rw-r--r--src/lib/debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/debug.c b/src/lib/debug.c
index e842249..bee4001 100644
--- a/src/lib/debug.c
+++ b/src/lib/debug.c
@@ -21,6 +21,7 @@ __attribute__((constructor))
if (!s)
return;
+ p1 = p2 = 0;
sscanf(s, "%d:%d", &p1, &p2);
__imlib_debug = p1;