From 182a32ff9dc06805995248a8ed09e4fcf0f46c2c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 25 Jul 2016 13:10:35 +0200 Subject: blaze822: blaze822_addr: return 0 when no address is found Also return null pointers instead of empty strings. --- msort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'msort.c') 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); } -- cgit 1.4.1