updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / rdup / rdup-1.1.11-unused-variable-n.patch
blob01296d689147f9ce1ed9f9e259329c1a8faa5d3e
1 diff -up rdup-1.1.11/rdup.c rdup-1.1.11.new/rdup.c
2 --- rdup-1.1.11/rdup.c 2011-02-19 23:30:07.000000000 +0100
3 +++ rdup-1.1.11.new/rdup.c 2011-05-06 12:29:33.000000000 +0200
4 @@ -59,7 +59,7 @@ g_tree_subtract(GTree *a, GTree *b)
5 static GTree *
6 g_tree_read_file(FILE *fp)
8 - gchar *buf, *n, *p, *q;
9 + gchar *buf, *p, *q;
10 gchar delim, linktype;
11 mode_t modus;
12 GTree *tree;
13 @@ -94,8 +94,6 @@ g_tree_read_file(FILE *fp)
14 if (s < LIST_MINSIZE)
15 CORRUPT("Corrupt entry at line: %zd, line to short");
17 - n = strrchr(buf, '\n');
19 /* get modus */
20 if (buf[LIST_SPACEPOS] != ' ')
21 CORRUPT("Corrupt entry at line: %zd, no space found");