-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Simon Josefsson on 11/13/2009 2:53 AM: > + > + result = my_xasprintf (""); > + ASSERT (result != NULL); > + ASSERT (strcmp (result, "") == 0); > +
Don't forget to free() result between each test, so that we don't keep leaking memory. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr9VVgACgkQ84KuGfSFAYCVrwCggjZmSK64NgWVSotXH9uu49Wf qx8AoMc0Q7ZlAISLxhfsMbr36NKKj8Yh =KQxr -----END PGP SIGNATURE-----