Skip to content

Commit

Permalink
Merge pull request #138 from jcarrano-eiwa/patch-1
Browse files Browse the repository at this point in the history
Fix error when decoding a NULL string
  • Loading branch information
inducer committed Sep 7, 2016
2 parents 3128eb2 + b1f9f04 commit 6ce6073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyopencl/cffi_cl.py
Expand Up @@ -99,7 +99,7 @@ def _py_call(handle, status):
_bytes = bytes

def _ffi_pystr(s):
return _ffi.string(s).decode()
return _ffi.string(s).decode() if s else None
else:
try:
_bytes = bytes
Expand Down

0 comments on commit 6ce6073

Please sign in to comment.