diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-04-09 14:52:55 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-04-09 14:52:55 +0800 |
commit | 153b9213ab8a6841cd208489653115fb47e9d91c (patch) | |
tree | bcaafb9797ad5608ae578060ae2dff5c3e3e2e30 /sysutils/upower | |
parent | 133cfec95dfc7173510e74087379a01d81c59911 (diff) | |
download | marcuscom-ports-153b9213ab8a6841cd208489653115fb47e9d91c.tar marcuscom-ports-153b9213ab8a6841cd208489653115fb47e9d91c.tar.gz marcuscom-ports-153b9213ab8a6841cd208489653115fb47e9d91c.tar.bz2 marcuscom-ports-153b9213ab8a6841cd208489653115fb47e9d91c.tar.lz marcuscom-ports-153b9213ab8a6841cd208489653115fb47e9d91c.tar.xz marcuscom-ports-153b9213ab8a6841cd208489653115fb47e9d91c.tar.zst marcuscom-ports-153b9213ab8a6841cd208489653115fb47e9d91c.zip |
Set some GError pointers to NULL to avoid memory corruption.
Reported by: kwm
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14030 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/upower')
-rw-r--r-- | sysutils/upower/Makefile | 3 | ||||
-rw-r--r-- | sysutils/upower/files/patch-src_up-polkit.c | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/sysutils/upower/Makefile b/sysutils/upower/Makefile index df1280583..bea0b71ed 100644 --- a/sysutils/upower/Makefile +++ b/sysutils/upower/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/sysutils/upower/Makefile,v 1.11 2010/03/23 16:02:47 kwm Exp $ +# $MCom: ports/sysutils/upower/Makefile,v 1.12 2010/04/06 22:53:43 marcus Exp $ # PORTNAME= upower DISTVERSION= 0.9.2 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://upower.freedesktop.org/releases/ diff --git a/sysutils/upower/files/patch-src_up-polkit.c b/sysutils/upower/files/patch-src_up-polkit.c new file mode 100644 index 000000000..88a074e99 --- /dev/null +++ b/sysutils/upower/files/patch-src_up-polkit.c @@ -0,0 +1,20 @@ +--- src/up-polkit.c.orig 2010-04-08 21:38:56.000000000 -0400 ++++ src/up-polkit.c 2010-04-09 02:48:12.000000000 -0400 +@@ -69,7 +69,7 @@ up_polkit_check_auth (UpPolkit *polkit, + { + gboolean ret = FALSE; + GError *error; +- GError *error_local; ++ GError *error_local = NULL; + PolkitAuthorizationResult *result; + + /* check auth */ +@@ -104,7 +104,7 @@ up_polkit_is_allowed (UpPolkit *polkit, + { + gboolean ret = FALSE; + GError *error; +- GError *error_local; ++ GError *error_local = NULL; + PolkitAuthorizationResult *result; + + /* check auth */ |