repo.or.cz
/
git-export-filter.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
1c4361e
)
Correct -pedantic complaint
author
Kyle J. McKay
<
[email protected]
>
Sun, 26 May 2013 02:20:34 +0000
(25 19:20 -0700)
committer
Kyle J. McKay
<
[email protected]
>
Sun, 26 May 2013 02:20:34 +0000
(25 19:20 -0700)
git-export-filter.c
patch
|
blob
|
blame
|
history
diff --git
a/git-export-filter.c
b/git-export-filter.c
index
475e10c
..
4ef3595
100644
(file)
--- a/
git-export-filter.c
+++ b/
git-export-filter.c
@@
-378,7
+378,9
@@
static void processfile(FILE *in, FILE *out,
static const char *translate(const char *in, const transform_t *x, size_t c)
{
const transform_t *t;
- transform_t search = {(char *)in, NULL};
+ transform_t search;
+ search.from = (char *)in;
+ search.to = NULL;
t = (transform_t *)bsearch(&search, x, c, sizeof(transform_t), cmpxform);
return t ? t->to : in;
}