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