670 free(res->tags_hash); |
670 free(res->tags_hash); |
671 } |
671 } |
672 free(res); |
672 free(res); |
673 } |
673 } |
674 |
674 |
675 char* nullstrdup(const char *s) { |
675 static char* nullstrdup(const char *s) { |
676 return s ? strdup(s) : NULL; |
676 return s ? strdup(s) : NULL; |
677 } |
677 } |
678 |
678 |
679 LocalResource* local_resource_copy(LocalResource *src, const char *new_path) { |
679 LocalResource* local_resource_copy(LocalResource *src, const char *new_path) { |
680 LocalResource *newres = calloc(1, sizeof(LocalResource)); |
680 LocalResource *newres = calloc(1, sizeof(LocalResource)); |