Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
coccinelle: make use of the "expression" FREE_AND_NULL() rule
[gitweb.git]
/
blame.c
diff --git
a/blame.c
b/blame.c
index 843c845cbaf6bc9d60ec8dcf79bad1ce0669319c..1183943960fab33f19067b28c346d12a6b99ec43 100644
(file)
--- a/
blame.c
+++ b/
blame.c
@@
-314,8
+314,7
@@
static void fill_origin_blob(struct diff_options *opt,
static void drop_origin_blob(struct blame_origin *o)
{
if (o->file.ptr) {
- free(o->file.ptr);
- o->file.ptr = NULL;
+ FREE_AND_NULL(o->file.ptr);
}
}