From 4cda3e8451b1862a4975aab3fcab73b29d376700 Mon Sep 17 00:00:00 2001
From: "Izzard, Robert Dr (Physics)" <r.izzard@surrey.ac.uk>
Date: Wed, 23 Oct 2019 10:18:24 +0100
Subject: [PATCH] Backport from izzard-discs: Fix bug in
 binary_c_string_macros.h where [0] should have been [1]. This prevented 0
 from being detected as "false" in Boolean arguments.

---
 src/binary_c_string_macros.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/binary_c_string_macros.h b/src/binary_c_string_macros.h
index 1998db5ea..3ac061a61 100644
--- a/src/binary_c_string_macros.h
+++ b/src/binary_c_string_macros.h
@@ -94,7 +94,7 @@
         (                                                               \
             (S)[0] == '\0' ||                                           \
             (                                                           \
-                ((S)[0] == '0' && (S)[0] == '\0')                       \
+                ((S)[0] == '0' && (S)[1] == '\0')                       \
                 ||                                                      \
                 (                                                       \
                     ((S)[0] == 'F' ||                                   \
-- 
GitLab