mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
fixed compiler warning about potentialy uninitialized variable
svn-id: r38446
This commit is contained in:
parent
4fcbc4f712
commit
4a241753c4
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user