[Libvirt-cim] [PATCH] [RFC] ProcessorRASD, the class that won't go away

Dan Smith danms at us.ibm.com
Thu Apr 24 16:53:46 UTC 2008


JG> That was my original assumption as well, but the asprintf() man
JG> page says: "If memory allocation wasn’t possible, or some other
JG> error occurs, these functions will return -1, and the contents of
JG> strp is undefined."

JG> That "undefined" bit made me all paranoid and I really hate
JG> segfaults so I figured better safe than sorry.

...but you're not passing dev_id to the asprintf()... :)

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080424/2988790b/attachment.sig>


More information about the Libvirt-cim mailing list