]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Compiler fixes for GCC with -Og
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 29 Oct 2020 13:35:26 +0000 (14:35 +0100)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 3 Nov 2020 22:35:08 +0000 (16:35 -0600)
ASTERISK-29144

Change-Id: I2a72c072083b4492a223c6f9d73d21f4f424db62

addons/ooh323c/src/ooq931.c
apps/app_directory.c
apps/app_voicemail.c
funcs/func_odbc.c

index 01a8e4aaf3473dac6c01d852ccdea6ffa1cb1438..fc18703921fa8bbf5c28c64ee0d8f7be99b7fa0a 100644 (file)
@@ -585,7 +585,7 @@ int ooDecodeUUIE(OOCTXT* pctxt, Q931Message *q931Msg)
    unsigned int i;
    ASN1BOOL aligned=TRUE;
    int stat;
-   Q931InformationElement *ie;
+   Q931InformationElement *ie=NULL;
    /* OOCTXT *pctxt = &gH323ep.msgctxt; */
    if(q931Msg ==NULL)
    {
index a47fe3b661b50f772b2cb0fd3655a30ca0caad65..36da702a5e51a3d7e99e6ce258f5d9c0439ce603 100644 (file)
@@ -396,7 +396,7 @@ static int select_item_menu(struct ast_channel *chan, struct directory_item **it
 {
        struct directory_item **block, *item;
        int i, limit, res = 0;
-       char buf[9];
+       char buf[7+12]; /* INT_MIN has a length of 12 chars */
 
        /* option p(n): cellphone pause option */
        select_item_pause(chan, flags, opts);
index e7ab9645d9e231803fc95e60100fa55382f33552..940ca67d9cec2818c3c0f19374fe84695d230b31 100644 (file)
@@ -11303,7 +11303,7 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
                        int skipuser, int max_logins, int silent)
 {
        int useadsi = 0, valid = 0, logretries = 0;
-       char password[AST_MAX_EXTENSION], *passptr;
+       char password[AST_MAX_EXTENSION], *passptr = NULL;
        struct ast_vm_user vmus, *vmu = NULL;
 
        /* If ADSI is supported, setup login screen */
index e9fe597dec3d376251c0685abc74cc9dc9d8d50c..acebdcc51aca5804f393c02ea88c512398ad2673 100644 (file)
@@ -1181,7 +1181,7 @@ static int free_acf_query(struct acf_odbc_query *query)
 static int init_acf_query(struct ast_config *cfg, char *catg, struct acf_odbc_query **query)
 {
        const char *tmp;
-       const char *tmp2;
+       const char *tmp2 = NULL;
        int i;
 
        if (!cfg || !catg) {