# HG changeset patch # User ib # Date 1395916130 0 # Node ID c2dcedfe36def674c462c281260c3248fae53f5b # Parent fa8b6892b0bf0bdda0f4eecd01261b0b2ed20563 Remove pointless initialization. Additionally, merge declarations. diff -r fa8b6892b0bf -r c2dcedfe36de gui/ui/render.c --- a/gui/ui/render.c Thu Mar 27 09:44:01 2014 +0000 +++ b/gui/ui/render.c Thu Mar 27 10:28:50 2014 +0000 @@ -359,9 +359,8 @@ static void PutImage(guiImage *bf, int x, int y, int max, int ofs) { - int i = 0, ix, iy; - uint32_t *buf = NULL; - uint32_t *drw = NULL; + int i, ix, iy; + uint32_t *drw, *buf; register uint32_t tmp; /* register uint32_t yc; */ @@ -400,8 +399,7 @@ static void SinglePhasePutImage(guiImage *bf, int x, int y, float frac) { int i = 0, w, r, ix, iy; - uint32_t *buf = NULL; - uint32_t *drw = NULL; + uint32_t *drw, *buf; register uint32_t tmp; if (!bf || (bf->Image == NULL))