Browse Source

* Argh, _really_ fixed the uninitialised variable.

tags/v0.99.beta14
Sam Hocevar sam 19 years ago
parent
commit
89355c1e39
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      cucul/import.c

+ 1
- 2
cucul/import.c View File

@@ -243,7 +243,7 @@ static cucul_canvas_t *import_ansi(void const *data, unsigned int size)
* Functions for Coded Character Sets", 5.4. Control sequences. */
if(buffer[i] == '\x1b' && buffer[i + 1] == '[')
{
unsigned int argc, argv[101];
unsigned int argc = 0, argv[101];
unsigned int param, inter, final;

/* Compute offsets to parameter bytes, intermediate bytes and
@@ -285,7 +285,6 @@ static cucul_canvas_t *import_ansi(void const *data, unsigned int size)
/* ECMA-48 5.4.2: Parameter string format */
if(param < inter)
{
argc = 0;
argv[0] = 0;
for(j = param; j < inter; j++)
{


Loading…
Cancel
Save