MCPcopy Index your code
hub / github.com/git/git / replace_cstring

Function replace_cstring

gpg-interface.c:212–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210};
211
212static void replace_cstring(char **field, const char *line, const char *next)
213{
214 free(*field);
215
216 if (line && next)
217 *field = xmemdupz(line, next - line);
218 else
219 *field = NULL;
220}
221
222static int parse_gpg_trust_level(const char *level,
223 enum signature_trust_level *res)

Callers 1

parse_gpg_outputFunction · 0.85

Calls 1

xmemdupzFunction · 0.85

Tested by

no test coverage detected