Bug in debug code
Fran=?utf-8?B?w6c=?=ois Laupretre
francois.laupretre-prestataire at calyon.com
Fri Jun 3 15:29:19 CEST 2005
At the end of 'add_contact' in common/objects.c, the 'DEBUG1' block contains
a printf with %s format for new_contact->email and new_contact->pager. But
one of these values can be a null pointer. I don't know how your printf
understands null pointers but mine (solaris) does not support them and
crashes with a Seg fault.
The code could be for these two lines :
printf("\tContact Email Address: %s\n",(new_contact->email ?
new_contact->email : "<null>"));
printf("\tContact Pager Number: %s\n",(new_contact->pager ?
new_contact->pager : "<null>"));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20050603/92b60013/attachment.html>
-------------- next part --------------
Ce message et ses pièces jointes (le "message") est destiné à l'usage
exclusif de son destinataire.
Si vous recevez ce message par erreur, merci d'en aviser immédiatement
l'expéditeur et de le détruire ensuite. Le présent message pouvant
être altéré à notre insu, CALYON Corporate and Investment Bank
ne peut pas être engagé par son contenu. Tous droits réservés.
This message and/or any attachments (the "message") is intended for
the sole use of its addressee.
If you are not the addressee, please immediately notify the sender and
then destroy the message. As this message and/or any attachments may
have been altered without our knowledge, its content is not legally
binding on CALYON Corporate and Investment Bank. All rights reserved.
More information about the Developers
mailing list