[libss7-commits] qwell: trunk r272 - /trunk/ss7.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Fri Aug 21 16:49:17 CDT 2009


Author: qwell
Date: Fri Aug 21 16:49:13 2009
New Revision: 272

URL: http://svn.asterisk.org/svn-view/libss7?view=rev&rev=272
Log:
Correct logic in a name comparison.

(closes issue #14677)
Reported by: Safari

Modified:
    trunk/ss7.c

Modified: trunk/ss7.c
URL: http://svn.asterisk.org/svn-view/libss7/trunk/ss7.c?view=diff&rev=272&r1=271&r2=272
==============================================================================
--- trunk/ss7.c (original)
+++ trunk/ss7.c Fri Aug 21 16:49:13 2009
@@ -270,7 +270,7 @@
 	if (ss7->numlinks >= SS7_MAX_LINKS)
 		return -1;
 
-	if (!name && (name[0] == 0))
+	if (!name || (name[0] == 0))
 		return -1;
 
 	m = mtp2_new(name, ss7->switchtype);




More information about the libss7-commits mailing list