Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
coccinelle: make use of the "type" FREE_AND_NULL() rule
[gitweb.git]
/
credential.c
diff --git
a/credential.c
b/credential.c
index aa996669fc40021e0c8cb01fa8021da7064e2781..0ab247ff40a03b6da6281814cc7b41edca934bb5 100644
(file)
--- a/
credential.c
+++ b/
credential.c
@@
-93,8
+93,7
@@
static void credential_apply_config(struct credential *c)
c->configured = 1;
if (!c->use_http_path && proto_is_http(c->protocol)) {
- free(c->path);
- c->path = NULL;
+ FREE_AND_NULL(c->path);
}
}