void-packages/srcpkgs/connman-ncurses/patches/check-null.patch

13 lines
412 B
Diff

Index: connman-ncurses-1.0/main.c
===================================================================
--- connman-ncurses-1.0.orig/main.c
+++ connman-ncurses-1.0/main.c
@@ -420,6 +420,7 @@ void repos_cursor(void)
*/
static void exec_action(struct userptr_data *data)
{
+ if (!data) return;
switch (context.current_context) {
case CONTEXT_SERVICES:
context.serv->dbus_name = strdup(data->dbus_name);