Fix 'pointer arithmetic with NULL' code defect in print_callers
authorIvan Maidanski <ivmai@mail.ru>
Wed, 11 Jul 2018 06:07:30 +0000 (09:07 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 11 Jul 2018 06:07:30 +0000 (09:07 +0300)
commitc88c621500984442369e0ae4ceeec54cfb9a6ce4
tree0c1ed2ba27db78022ea83c6b0ad17eaed9b5bc41
parent900d7e76317c9f07626e922ced0c39bae72d5bdb
Fix 'pointer arithmetic with NULL' code defect in print_callers

* os_dep.c [NEED_CALLINFO && LINUX && !SMALL_CONFIG] (GC_print_callers):
If nl is null then pass result_len (instead of nl-result_buf) to strncmp;
adjust code indentation.
os_dep.c