repo.or.cz
/
git
/
git-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
doc: describe git svn init --ignore-refs
[git/git-svn.git]
/
contrib
/
coccinelle
/
xstrdup_or_null.cocci
blob
8e05d1ca4b61b9792a6f7cc4e7d322efeab02e01
1
@@
2
expression E;
3
expression V;
4
@@
5
- if (E)
6
- V = xstrdup(E);
7
+ V = xstrdup_or_null(E);
8
9
@@
10
expression E;
11
@@
12
- xstrdup(absolute_path(E))
13
+ absolute_pathdup(E)