Color management architecture: color profiles
All threads resolved!
All threads resolved!
Compare changes
- Pekka Paalanen authored
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>
+ 27
− 0
@@ -31,6 +31,8 @@
@@ -68,4 +70,29 @@ safe_strtoint(const char *str, int32_t *value)