Skip to content
Snippets Groups Projects
Commit 4a884ce1 authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

shared: add str_printf()


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: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
parent 4c8d927a
Loading
This commit is part of merge request !637. Comments created here will be created in the context of that merge request.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment