Small mistake in null_port.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

there is a small mistake (a typo?) in assertion in constructor of null 
port. Patch attached.

Cheers,
- Vali
-------------- next part --------------
Index: pjmedia/src/pjmedia/null_port.c
===================================================================
--- pjmedia/src/pjmedia/null_port.c	(revision 4369)
+++ pjmedia/src/pjmedia/null_port.c	(working copy)
@@ -46,7 +46,7 @@
     PJ_ASSERT_RETURN(pool && p_port, PJ_EINVAL);
 
     port = PJ_POOL_ZALLOC_T(pool, pjmedia_port);
-    PJ_ASSERT_RETURN(pool != NULL, PJ_ENOMEM);
+    PJ_ASSERT_RETURN(port != NULL, PJ_ENOMEM);
 
     pjmedia_port_info_init(&port->info, &name, SIGNATURE, sampling_rate,
 			   channel_count, bits_per_sample, samples_per_frame);


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux