- wbkgrndset(win, CHREF(new_bkgd));
- wattrset(win, AttrOf(win->_nc_bkgd));
+ memset(&old_bkgrnd, 0, sizeof(old_bkgrnd));
+ (void) wgetbkgrnd(win, &old_bkgrnd);
+
+ (void) wbkgrndset(win, CHREF(new_bkgd));
+ (void) wattrset(win, (int) AttrOf(win->_nc_bkgd));