OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pth_msg.c versions 1.27 and 1.28
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pth_msg.c 1.27 -> 1.28

--- pth_msg.c    2004/07/13 10:50:49     1.27
+++ pth_msg.c    2004/10/18 19:35:45     1.28
@@ -97,8 +97,9 @@
     /* iterate over message ports */
     mp = mpf = (pth_msgport_t)pth_ring_first(&pth_msgport);
     while (mp != NULL) {
-        if (strcmp(mp->mp_name, name) == 0)
-            break;
+        if (mp->mp_name != NULL)
+            if (strcmp(mp->mp_name, name) == 0)
+                break;
         mp = (pth_msgport_t)pth_ring_next(&pth_msgport, (pth_ringnode_t *)mp);
         if (mp == mpf) {
             mp = NULL;
@@ -108,7 +109,7 @@
     return mp;
 }
 
-/* number of message on a port */
+/* number of messages on a port */
 int pth_msgport_pending(pth_msgport_t mp)
 {
     if (mp == NULL)

CVSTrac 2.0.1