[asterisk-commits] tilghman: branch 1.6.0 r190353 - in /branches/1.6.0: ./ main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 23 15:43:02 CDT 2009
Author: tilghman
Date: Thu Apr 23 15:42:58 2009
New Revision: 190353
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190353
Log:
Merged revisions 190352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r190352 | tilghman | 2009-04-23 15:42:11 -0500 (Thu, 23 Apr 2009) | 7 lines
Labels are sometimes (most of the time?) NULL for extensions.
(closes issue #14895)
Reported by: chris-mac
Patches:
20090423__bug14895__2.diff.txt uploaded by tilghman (license 14)
Tested by: lmadsen
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/main/pbx.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/main/pbx.c?view=diff&rev=190353&r1=190352&r2=190353
==============================================================================
--- branches/1.6.0/main/pbx.c (original)
+++ branches/1.6.0/main/pbx.c Thu Apr 23 15:42:58 2009
@@ -400,7 +400,7 @@
{
const struct ast_exten *ac = ah_a;
const struct ast_exten *bc = ah_b;
- return strcmp(ac->label, bc->label);
+ return strcmp(S_OR(ac->label, ""), S_OR(bc->label, ""));
}
unsigned int ast_hashtab_hash_contexts(const void *obj)
@@ -428,7 +428,7 @@
static unsigned int hashtab_hash_labels(const void *obj)
{
const struct ast_exten *ac = obj;
- return ast_hashtab_hash_string(ac->label);
+ return ast_hashtab_hash_string(S_OR(ac->label, ""));
}
More information about the asterisk-commits
mailing list