Fix potential unassigned variable

Thu, 11 Apr 2013 09:37:25 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Thu, 11 Apr 2013 09:37:25 +0100
changeset 139
d91346487fe9
parent 138
d744db15cdf7
child 146
fb6a37a266da

Fix potential unassigned variable

src/memory.c file | annotate | diff | revisions
     1.1 diff -r d744db15cdf7 -r d91346487fe9 src/memory.c
     1.2 --- a/src/memory.c	Thu Apr 11 09:37:11 2013 +0100
     1.3 +++ b/src/memory.c	Thu Apr 11 09:37:25 2013 +0100
     1.4 @@ -226,7 +226,7 @@
     1.5  bool access_check_dma(int reading)
     1.6  {
     1.7  	// Check memory access permissions
     1.8 -	bool access_ok;
     1.9 +	bool access_ok = false;
    1.10  	switch (checkMemoryAccess(state.dma_address, !reading)) {
    1.11  		case MEM_PAGEFAULT:
    1.12  			// Page fault