osip-dev
[Top][All Lists]
Advanced

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

[osip-dev] improvement of eXosip_malloc


From: FEICHTER Christoph
Subject: [osip-dev] improvement of eXosip_malloc
Date: Mon, 22 Dec 2014 13:46:57 +0000

hi aymeric,
 
another improvement – this time for eXosip_malloc:
I would suggest to initially set j_stop_ua = -1:
 
struct eXosip_t *
eXosip_malloc (void)
{
  struct eXosip_t *ptr = (struct eXosip_t *) osip_malloc (sizeof (eXosip_t));
 
  if (ptr)
  {
    memset (ptr, 0, sizeof (eXosip_t));
    ptr->j_stop_ua = -1;
  }
  return ptr;
}
 
after calling eXosip_quit the variable  j_stop_ua is set et to -1 !
this should also be the initial value !
 
br,
christoph
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]