summaryrefslogtreecommitdiffstats
path: root/academic/primer3/gcc-7.patch
blob: a92d0e77b7425c94c3b2fef301a2d8d4784baa30 (plain)
Author:  Andreas Tille <tille@debian.org>
Last-Update: Sat, 26 Aug 2017 00:32:40 +0200
Bug-Debian: https://bugs.debian.org/853621
Description: Fix build with gcc-7

--- a/src/thal.c
+++ b/src/thal.c
@@ -426,12 +426,12 @@ thal(const unsigned char *oligo_f,
 	       "Illegal type");
    o->align_end_1 = -1;
    o->align_end_2 = -1;
-   if ('\0' == oligo_f) {
+   if ('\0' == oligo_f[0]) {
       strcpy(o->msg, "Empty first sequence");
       o->temp = 0.0;
       return;
    }
-   if ('\0' == oligo_r) {
+   if ('\0' == oligo_r[0]) {
       strcpy(o->msg, "Empty second sequence");
       o->temp = 0.0;
       return;