| 174 | | char *father_path = strdup(GB_get_db_path(gb_father)); |
| 175 | | |
| 176 | | static char *result; // careful! used recursively |
| 177 | | freeset(result, GBS_global_string_copy("%s/%s", father_path, GB_KEY(gbd))); |
| 178 | | free(father_path); |
| 179 | | |
| 180 | | return result; |
| | 174 | const char *father_path = GB_get_db_path(gb_father); |
| | 175 | |
| | 176 | static SmartMallocPtr(char) result; // careful! used recursively |
| | 177 | char *key = GB_KEY(gbd); |
| | 178 | result = GBS_global_string_copy("%s/%s", father_path, key ? key : "<gbmain>"); |
| | 179 | |
| | 180 | return &*result; |