mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 20:30:04 +01:00
If asprintf fails for any reason, the contents of the pointer are undefined. While some platforms set it to NULL, there is no guarantee that all will. This change adds a simple wrapper to ensure proper NULL results on failure. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Added LIBINPUT_PRINTF attribute and the required declaration for it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| event-debug.c | ||
| event-gui.c | ||
| libinput-debug-events.man | ||
| libinput-list-devices.c | ||
| libinput-list-devices.man | ||
| Makefile.am | ||
| ptraccel-debug.c | ||
| publish-doc | ||
| shared.c | ||
| shared.h | ||