Tags: patch

Dear Debian QA Group,

Thanks for keeping this game going in Debian.

This bug report seemed partly automated and did not fully explain what the 
bug was, so I thought I would clarify it. If open-invaders is started 
without an X display, e.g. if DISPLAY is unset, then it segfaults instead 
of exiting gracefully:

$ unset DISPLAY
$ open-invaders
/usr/share
Segmentation fault
$

This happens because the program does not check the return code of 
allegro_init().

The attached patch fixes the problem.

Thanks again,
John.

Attachment: check-allegro-init-succeeded.patch
Description: Binary data

Reply via email to