]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_voicemail.c: Fix may-be-uninitialized error master
authorSean Bright <sean@seanbright.com>
Sun, 2 Aug 2026 16:05:47 +0000 (16:05 +0000)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 4 Aug 2026 15:45:33 +0000 (15:45 +0000)
A pointer to `new` is passed to `inboxcount(...)` which increments the
pointed-to value.

apps/app_voicemail.c

index 6be1cf6a7acc7ccd56226dc8f4810f82c278f337..9a3275d0a47ccf5d59d9a00d71546070e6f074d1 100644 (file)
@@ -14176,7 +14176,7 @@ static int append_vmu_info_astman(
                const char* actionid
                )
 {
-       int new;
+       int new = 0;
        int old;
        char *mailbox;
        int ret;