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

Jay Gagnon grendel at linux.vnet.ibm.com
Thu Apr 24 18:39:55 UTC 2008


Dan Smith wrote:
> 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()... :)
>
>   
Sigh...

-- 

-Jay




More information about the Libvirt-cim mailing list