fixed compiler warning about potentialy uninitialized variable

svn-id: r38446
This commit is contained in:
Paweł Kołodziejski 2009-02-17 20:43:37 +00:00
parent 4fcbc4f712
commit 4a241753c4
2 changed files with 2 additions and 2 deletions

View File

@ -796,7 +796,7 @@ int clone_entry_used(clone_table_t *table, int n) {
static
void load_script(state_t *s, seg_id_t seg) {
resource_t *script, *heap;
resource_t *script, *heap = NULL;
script_t *scr = &(s->seg_manager.heap[seg]->data.script);
scr->buf = (byte *) malloc(scr->buf_size);

View File

@ -4901,7 +4901,7 @@ int clone_entry_used(clone_table_t *table, int n) {
static
void load_script(state_t *s, seg_id_t seg) {
resource_t *script, *heap;
resource_t *script, *heap=NULL;
script_t *scr = &(s->seg_manager.heap[seg]->data.script);
scr->buf = (byte *) malloc(scr->buf_size);