Commit 13ad1eff authored by Jason Cope's avatar Jason Cope Committed by Dries Kimpe
Browse files

add a NULL check before the handle print

parent 5a4b6907
......@@ -70,6 +70,9 @@ int zoidfs_text_to_handle (const char * buf, zoidfs_handle_t * handle)
const char * zoidfs_handle_string (const zoidfs_handle_t * handle)
if(handle == NULL)
return NULL;
static char buf[(sizeof(zoidfs_handle_t)*2)+1];
zoidfs_handle_to_text (handle, buf, sizeof(buf));
return buf;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment