summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-10-06 13:16:15 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-10-06 13:16:15 +0200
commit1748c0f52a5ba5b451d74c6feefefb404cb4d9d6 (patch)
tree115f5d5c77d7850f306878f90413d3769ba52edc
parent5f45b7d53361bd32ce390e12f814660a98f86aa9 (diff)
downloadmblaze-1748c0f52a5ba5b451d74c6feefefb404cb4d9d6.tar.gz
mblaze-1748c0f52a5ba5b451d74c6feefefb404cb4d9d6.tar.xz
mblaze-1748c0f52a5ba5b451d74c6feefefb404cb4d9d6.zip
mhdr: do not return void values
-rw-r--r--mhdr.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mhdr.c b/mhdr.c
index 73d76f9..c31cee2 100644
--- a/mhdr.c
+++ b/mhdr.c
@@ -171,10 +171,14 @@ header(char *file)
 	if (!msg)
 		return;
 
-	if (!hflag)
-		return headerall(msg);
-	if (Mflag)
-		return headermany(msg);
+	if (!hflag) {
+		headerall(msg);
+		return;
+	}
+	if (Mflag) {
+		headermany(msg);
+		return;
+	}
 
 	char *h = hflag;
 	while (*h) {