gcc-7.patch 621 B

1234567891011121314151617181920212223
  1. Author: Andreas Tille <tille@debian.org>
  2. Last-Update: Sat, 26 Aug 2017 00:32:40 +0200
  3. Bug-Debian: https://bugs.debian.org/853621
  4. Description: Fix build with gcc-7
  5. --- a/src/thal.c
  6. +++ b/src/thal.c
  7. @@ -426,12 +426,12 @@ thal(const unsigned char *oligo_f,
  8. "Illegal type");
  9. o->align_end_1 = -1;
  10. o->align_end_2 = -1;
  11. - if ('\0' == oligo_f) {
  12. + if ('\0' == oligo_f[0]) {
  13. strcpy(o->msg, "Empty first sequence");
  14. o->temp = 0.0;
  15. return;
  16. }
  17. - if ('\0' == oligo_r) {
  18. + if ('\0' == oligo_r[0]) {
  19. strcpy(o->msg, "Empty second sequence");
  20. o->temp = 0.0;
  21. return;