diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-06 00:24:38 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-06 00:24:38 +0000 |
commit | f008966b3cea1a9d8fb0115d7829ccc6688fde17 (patch) | |
tree | 6552f58f576d71c5e396acee7943fa4739f6ce32 /pbx | |
parent | 3adb451f3c31f53393c97879f79870b11c227512 (diff) |
Save 1 whopping byte of allocated memory!
This looks like it may have been a chicken/egg scenario..
You had to call a cleanup func, because everything was allocated.
Then since you had to call a cleanup func, you were forced to allocate - ie; strdup("").
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49742 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 6980ca197..25fe7ddce 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -2409,7 +2409,7 @@ static void pbx_load_users(void) } if (!ast_strlen_zero(iface)) { /* Add hint */ - ast_add_extension2(con, 0, cat, -1, NULL, NULL, iface, strdup(""), ast_free, registrar); + ast_add_extension2(con, 0, cat, -1, NULL, NULL, iface, NULL, NULL, registrar); /* If voicemail, use "stdexten" else use plain old dial */ if (hasvoicemail) { snprintf(tmp, sizeof(tmp), "stdexten|%s|${HINT}", cat); |