Bug #20028 (Debian bug 399271): fix code assuming that pointer