Ensure *valuep always written by extract_normal return
[deliverable/binutils-gdb.git] / opcodes / or1k-ibld.c
index cc2955f04169c1ec0ae2670e1d7aa7e172ed536f..d802a98462bf11a3836e0ce33074b74a9a716312 100644 (file)
@@ -480,7 +480,10 @@ extract_normal (CGEN_CPU_DESC cd,
        abort ();
 
       if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0)
-       return 0;
+       {
+         *valuep = 0;
+         return 0;
+       }
 
       value = extract_1 (cd, ex_info, start, length, word_length, bufp, pc);
     }
This page took 0.024375 seconds and 4 git commands to generate.