diff -r dee5afe5301f -r 3f74d0d4af4c src/gui/painting/qdrawhelper_p.h --- a/src/gui/painting/qdrawhelper_p.h Mon Mar 15 12:43:09 2010 +0200 +++ b/src/gui/painting/qdrawhelper_p.h Thu Apr 08 14:19:33 2010 +0300 @@ -1549,6 +1549,9 @@ template inline void qt_memfill(T *dest, T value, int count) { + if (!count) + return; + int n = (count + 7) / 8; switch (count & 0x07) {