diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-12 20:40:03 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-12 20:40:03 +0000 |
commit | dd1cdc3b229bee788074dbf929058fc3c04c3dd5 (patch) | |
tree | 38e9dedc23a672e85efd6995d5799c29a48c2933 /src | |
parent | d4d80670e50778349b93902dd8b4d46b7956a3a6 (diff) | |
download | cflow-dd1cdc3b229bee788074dbf929058fc3c04c3dd5.tar.gz cflow-dd1cdc3b229bee788074dbf929058fc3c04c3dd5.tar.bz2 |
(set_level_mark): Fix allocation condition
(output): Remove erroneous initialization of level_mark.
Diffstat (limited to 'src')
-rw-r--r-- | src/output.c | 3 |
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 */ static void set_level_mark(int lev, int mark) { - if (lev > level_mark_size) { + if (lev >= level_mark_size) { level_mark_size += level_mark_incr; level_mark = xrealloc(level_mark, level_mark_size); } @@ -410,7 +410,6 @@ output() error(2, errno, _("cannot open file `%s'"), outname); } - level_mark = xmalloc(level_mark_size); set_level_mark(0, 0); if (print_option & PRINT_XREF) { xref_output(); |