mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
connman-ncurses: fix crash
This commit is contained in:
parent
b0d73f1999
commit
b8cc58f1d3
2 changed files with 13 additions and 1 deletions
12
srcpkgs/connman-ncurses/patches/check-null.patch
Normal file
12
srcpkgs/connman-ncurses/patches/check-null.patch
Normal 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);
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue