aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_native_error.pyx
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-02 09:47:48 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-02 09:47:48 +0200
commit19241f627259fef20231a505230c19e63ae807a0 (patch)
treea91dba6b4808e754d63b34b12d287ee7e694f7d9 /src/libgamma_native_error.pyx
parentmisc (diff)
downloadpylibgamma-19241f627259fef20231a505230c19e63ae807a0.tar.gz
pylibgamma-19241f627259fef20231a505230c19e63ae807a0.tar.bz2
pylibgamma-19241f627259fef20231a505230c19e63ae807a0.tar.xz
fix misc errors + write test
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libgamma_native_error.pyx')
-rw-r--r--src/libgamma_native_error.pyx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libgamma_native_error.pyx b/src/libgamma_native_error.pyx
index b10dc5a..d88f7fe 100644
--- a/src/libgamma_native_error.pyx
+++ b/src/libgamma_native_error.pyx
@@ -93,6 +93,7 @@ def libgamma_native_set_group_gid(gid : int):
Group that the user needs to be a member of if
`LIBGAMMA_DEVICE_REQUIRE_GROUP` is returned.
'''
+ global libgamma_group_gid
libgamma_group_gid = <int>gid
@@ -120,6 +121,7 @@ def libgamma_native_set_group_name(name : str):
`None` if the name of the group `libgamma_group_gid`
cannot be determined.
'''
+ global libgamma_group_name
cdef bytes bs
if name is None:
libgamma_group_name = <char*>NULL