about summary refs log tree commit diff
path: root/msort.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-25 13:10:35 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-25 13:10:35 +0200
commit182a32ff9dc06805995248a8ed09e4fcf0f46c2c (patch)
treeff142254d249c2cc6dcaa34bc2bb3be340486274 /msort.c
parente747879e0ea46fdfb748a90b91ac11cd16dca7f5 (diff)
downloadmblaze-182a32ff9dc06805995248a8ed09e4fcf0f46c2c.tar.gz
mblaze-182a32ff9dc06805995248a8ed09e4fcf0f46c2c.tar.xz
mblaze-182a32ff9dc06805995248a8ed09e4fcf0f46c2c.zip
blaze822: blaze822_addr: return 0 when no address is found
Also return null pointers instead of empty strings.
Diffstat (limited to 'msort.c')
-rw-r--r--msort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/msort.c b/msort.c
index 1526a05..6f72347 100644
--- a/msort.c
+++ b/msort.c
@@ -74,9 +74,9 @@ fetch_from(char *file)
 	if (v) {
 		char *disp, *addr;
                 blaze822_addr(v, &disp, &addr);
-                if (*disp)
+                if (disp)
                         from = strdup(disp);
-                else if (*addr)
+                else if (addr)
 			from = strdup(addr);
 	}