André Hentschel : dwrite: Fix possible NULL pointer access in heap_strdup*.