mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
app_minivm: Fix a couple compiler warnings.
The warnings were about argv[0] being used uninitialized, which is correct. Just remove setting username to this value, since username is set again before it actually gets used. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@364438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2085,7 +2085,7 @@ static int minivm_notify_exec(struct ast_channel *chan, const char *data)
|
||||
char *domain;
|
||||
char *tmpptr;
|
||||
struct minivm_account *vmu;
|
||||
char *username = argv[0];
|
||||
char *username;
|
||||
const char *template = "";
|
||||
const char *filename;
|
||||
const char *format;
|
||||
@@ -2457,7 +2457,7 @@ static int minivm_accmess_exec(struct ast_channel *chan, const char *data)
|
||||
char *domain;
|
||||
char *tmpptr = NULL;
|
||||
struct minivm_account *vmu;
|
||||
char *username = argv[0];
|
||||
char *username;
|
||||
struct ast_flags flags = { 0 };
|
||||
char *opts[OPT_ARG_ARRAY_SIZE];
|
||||
int error = FALSE;
|
||||
|
Reference in New Issue
Block a user