connman-ncurses: fix crash
This commit is contained in:
parent
b0d73f1999
commit
b8cc58f1d3
|
@ -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);
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'connman-ncurses'
|
# Template file for 'connman-ncurses'
|
||||||
pkgname=connman-ncurses
|
pkgname=connman-ncurses
|
||||||
version=1.0
|
version=1.0
|
||||||
revision=6
|
revision=7
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake autoconf pkg-config json-c-devel ncurses-devel dbus-devel"
|
hostmakedepends="automake autoconf pkg-config json-c-devel ncurses-devel dbus-devel"
|
||||||
makedepends="json-c-devel ncurses-devel dbus-devel"
|
makedepends="json-c-devel ncurses-devel dbus-devel"
|
||||||
|
|
Loading…
Reference in New Issue