Skip to content

Commit

Permalink
Conversion should check if it receives null pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacu committed Sep 1, 2016
1 parent 7c04f6e commit a538e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/region.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ char* region_string(region_container* region) {
char* result = NULL;
string_buffer buffer;

if (!region) return NULL;

BUFFER_CREATE(buffer, 32);

if (region->type == SPECIAL) {
Expand Down

0 comments on commit a538e20

Please sign in to comment.