aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-06-12 20:40:03 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-06-12 20:40:03 +0000
commitdd1cdc3b229bee788074dbf929058fc3c04c3dd5 (patch)
tree38e9dedc23a672e85efd6995d5799c29a48c2933
parentd4d80670e50778349b93902dd8b4d46b7956a3a6 (diff)
downloadcflow-dd1cdc3b229bee788074dbf929058fc3c04c3dd5.tar.gz
cflow-dd1cdc3b229bee788074dbf929058fc3c04c3dd5.tar.bz2
(set_level_mark): Fix allocation condition
(output): Remove erroneous initialization of level_mark.
-rw-r--r--src/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output.c b/src/output.c
index b062a9f..cec8aae 100644
--- a/src/output.c
+++ b/src/output.c
@@ -32,7 +32,7 @@ FILE *outfile; /* Output file */
32static void 32static void
33set_level_mark(int lev, int mark) 33set_level_mark(int lev, int mark)
34{ 34{
35 if (lev > level_mark_size) { 35 if (lev >= level_mark_size) {
36 level_mark_size += level_mark_incr; 36 level_mark_size += level_mark_incr;
37 level_mark = xrealloc(level_mark, level_mark_size); 37 level_mark = xrealloc(level_mark, level_mark_size);
38 } 38 }
@@ -410,7 +410,6 @@ output()
410 error(2, errno, _("cannot open file `%s'"), outname); 410 error(2, errno, _("cannot open file `%s'"), outname);
411 } 411 }
412 412
413 level_mark = xmalloc(level_mark_size);
414 set_level_mark(0, 0); 413 set_level_mark(0, 0);
415 if (print_option & PRINT_XREF) { 414 if (print_option & PRINT_XREF) {
416 xref_output(); 415 xref_output();

Return to:

Send suggestions and report system problems to the System administrator.