asprintf() has the problem that it leaves *strp undefined when it fails. Here is a simple wrapper that ensures NULL if asprintf() fails, which is much more convenient to use. This will be useful in future patches, where one needs to return error messages from maybe failing functions, and more. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>dev
parent
63fc73d1cc
commit
bc3c37840c
Loading…
Reference in new issue