projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d7b86c
)
Fix a compiler warning.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 31 Jan 2013 15:03:24 +0000
(16:03 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 31 Jan 2013 15:03:24 +0000
(16:03 +0100)
src/graph.c
patch
|
blob
|
history
diff --git
a/src/graph.c
b/src/graph.c
index 586aee8b738e67a6627590188fbfe743304a4f24..cca0935029587cc20d2cafa3fddb992b9c4a5b10 100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-318,7
+318,7
@@
void dump_graph(void) {
node_t *n;
edge_t *e;
char *filename = NULL, *tmpname = NULL;
- FILE *file, *pipe;
+ FILE *file, *pipe
= NULL
;
if(!graph_changed || !get_config_string(lookup_config(config_tree, "GraphDumpFile"), &filename))
return;
@@
-356,7
+356,7
@@
void dump_graph(void) {
fprintf(file, "}\n");
- if(
filename[0] == '|'
) {
+ if(
pipe
) {
pclose(pipe);
} else {
fclose(file);