connman-ncurses: fix crash

This commit is contained in:
Đoàn Trần Công Danh 2022-11-09 22:03:04 +07:00
parent b0d73f1999
commit b8cc58f1d3
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
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);

View File

@ -1,7 +1,7 @@
# Template file for 'connman-ncurses'
pkgname=connman-ncurses
version=1.0
revision=6
revision=7
build_style=gnu-configure
hostmakedepends="automake autoconf pkg-config json-c-devel ncurses-devel dbus-devel"
makedepends="json-c-devel ncurses-devel dbus-devel"