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
certified/11.2
Russell Bryant 13 years ago
parent 386c2c6edf
commit a498ef2aa0

@ -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;

Loading…
Cancel
Save