Skip to content

SiS_DDC2Delay: initialize variable before adding to it

Alan Coopersmith requested to merge alanc/xf86-video-sis:parfait into master

Fixes issue flagged by Oracle Parfait 13.3 static analyser:

   Uninitialised variable [uninitialised-var]:
      Uninitialised variable 'j' may be used for addition with
      SiS_GetReg(SiS_Pr->SiS_P3c4, 5)
        at line 424 of src/init301.c in function 'SiS_DDC2Delay'.

Though in truth, it doesn't matter much since we never read the values written to 'j'.

Signed-off-by: Alan Coopersmith

Merge request reports

Loading