mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Fix missing NULL (bug #3078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -427,7 +427,7 @@ static int change_password_realtime(struct ast_vm_user *vmu, const char *passwor
|
||||
{
|
||||
int res;
|
||||
if (!ast_strlen_zero(vmu->uniqueid)) {
|
||||
res = ast_update_realtime("voicemail", "uniqueid", vmu->uniqueid, "password", password);
|
||||
res = ast_update_realtime("voicemail", "uniqueid", vmu->uniqueid, "password", password, NULL);
|
||||
if (!res)
|
||||
strncpy(vmu->password, password, sizeof(vmu->password) - 1);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user