summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pikul.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pikul.c b/pikul.c
index 8ba0cd1..c9d9eda 100644
--- a/pikul.c
+++ b/pikul.c
@@ -201,8 +201,10 @@ char *pikul_html(char *origins[], char *destinations[], double weight,
struct pikul_service **services[PIKUL_END];
bool no_service = true;
for (enum pikul_company company = PIKUL; company < PIKUL_END; company++) {
- if (!shipping_list[company])
+ if (!shipping_list[company]) {
+ services[company] = NULL;
continue;
+ }
services[company] = pikul_services(company,
origins[company], destinations[company], weight);
if (services[company] && services[company][0])