TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Digital Man
from: deon
date: 2022-05-09 13:13:00
subject: MsgBase first_msg propert

  Re: MsgBase first_msg property.
  By: Digital Man to deon on Sun May 08 2022 07:37 pm

 > No, not luck. In js_msgbase_constructor(), the private_t (which contains the cached first_msg value) that is allocated and associated with the object is zeroed:
 >
 >         memset(p,0,sizeof(private_t));
 >
 > Today, I would write that line:
 >
 >         memset(p, 0, sizeof(*p));

Got it, thanks :)


...лоеп

---
 ю Synchronet ю Alterant | an SBBS in Docker on Pi!
                                                                                                                    
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.