MCPcopy Create free account
hub / github.com/git/git / xstrdup_or_null

Function xstrdup_or_null

git-compat-util.h:912–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910 } while (0)
911
912static inline char *xstrdup_or_null(const char *str)
913{
914 return str ? xstrdup(str) : NULL;
915}
916
917static inline size_t xsize_t(off_t len)
918{

Callers 15

git_system_configFunction · 0.85
git_global_config_pathsFunction · 0.85
configset_add_valueFunction · 0.85
parse_reference_uriFunction · 0.85
apply_repository_formatFunction · 0.85
apply_ref_filterFunction · 0.85
copy_pathspecFunction · 0.85
grep_source_init_fileFunction · 0.85
grep_source_init_oidFunction · 0.85
unpack_treesFunction · 0.85
add_mappingFunction · 0.85
http_optionsFunction · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by 1

copy_pathspecFunction · 0.68