/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
completion: add --skip for cherry-pick and revert
[git/git.git]
/
contrib
/
coccinelle
/
xstrdup_or_null.cocci
Commit
Line
Data
13092a91
JH
1
@@
2
expression E;
3
expression V;
4
@@
5
- if (E)
6
- V = xstrdup(E);
7
+ V = xstrdup_or_null(E);
b1edb40f
RS
8
9
@@
10
expression E;
11
@@
12
- xstrdup(absolute_path(E))
13
+ absolute_pathdup(E)