Fix logic expression in release_heading(), found by Coverity Scan

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-06-06 16:57:52 +02:00
parent 8e1845f57b
commit 97bebe52c9
+1 -1
View File
@@ -142,7 +142,7 @@ char *release_heading(void)
if (strncmp(buf, "PRETTY_NAME=", 12))
continue;
if (*ptr == '"' || *ptr == '\"') {
if (*ptr == '"' || *ptr == '\'') {
char *end = &ptr[strlen(ptr) - 1];
char q = *ptr;