This might be just shifting the problem into the future, but this works
with less code and will make it easier to add more formats, should that
be necessary:

>      for (size_t i = 0;
>-      i < sizeof vmlinux_suffixes / sizeof vmlinux_suffixes[0];
>+      i + 1 < (sizeof vmlinux_suffixes / sizeof vmlinux_suffixes[0]) + 1;

PM
_______________________________________________
elfutils-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/elfutils-devel

Reply via email to