• M
    ppc64Compute: Avoid possible NULL dereference · 09258c3c
    Michal Privoznik 提交于
    cpu/cpu_ppc64.c: In function 'ppc64Compute':
    cpu/cpu_ppc64.c:620:27: error: potential null pointer dereference [-Werror=null-dereference]
         if (STRNEQ(guest_model->name, host_model->name)) {
                    ~~~~~~~~~~~^~~
    cpu/cpu_ppc64.c:620:9: note: in expansion of macro 'STRNEQ'
         if (STRNEQ(guest_model->name, host_model->name)) {
             ^~~~~~
    cc1: all warnings being treated as errors
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    09258c3c
cpu_ppc64.c 22.9 KB