[svn-commits] rmudgett: branch 1.4 r1219 - /branches/1.4/q931.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Oct 19 17:38:37 CDT 2009


Author: rmudgett
Date: Mon Oct 19 17:38:32 2009
New Revision: 1219

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1219
Log:
Fix comparision of invalid party name and number structs in comparison functions.

Modified:
    branches/1.4/q931.c

Modified: branches/1.4/q931.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q931.c?view=diff&rev=1219&r1=1218&r2=1219
==============================================================================
--- branches/1.4/q931.c (original)
+++ branches/1.4/q931.c Mon Oct 19 17:38:32 2009
@@ -381,6 +381,8 @@
 			return 0;
 		}
 		return -1;
+	} else if (!right->valid) {
+		return 1;
 	}
 	cmp = left->char_set - right->char_set;
 	if (cmp) {
@@ -413,6 +415,8 @@
 			return 0;
 		}
 		return -1;
+	} else if (!right->valid) {
+		return 1;
 	}
 	cmp = left->plan - right->plan;
 	if (cmp) {




More information about the svn-commits mailing list