[haiku-commits] Re: r33924 - haiku/trunk/src/apps/debugger/dwarf

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 06 Nov 2009 19:58:15 +0100

ingo_weinhold@xxxxxx wrote:
> +     if (augmentation == NULL || *augmentation != '\0') {
> +             if (strcmp(augmentation, "eh") == 0) {

Shouldn't that be:
        if (augmentation != NULL && augmentation[0] != '\0') {
                ...

?
Otherwise strcmp() may crash.

Bye,
   Axel.


Other related posts: