… | |
… | |
254 | { |
254 | { |
255 | recipelist *fl; |
255 | recipelist *fl; |
256 | recipe *check, *formula; |
256 | recipe *check, *formula; |
257 | int numb = 1; |
257 | int numb = 1; |
258 | |
258 | |
259 | LOG (llevDebug, "Checking formulae lists..."); |
259 | LOG (llevDebug, "Checking formulae lists...\n"); |
260 | |
260 | |
261 | for (fl = formulalist; fl != NULL; fl = fl->next) |
261 | for (fl = formulalist; fl != NULL; fl = fl->next) |
262 | { |
262 | { |
263 | for (formula = fl->items; formula != NULL; formula = formula->next) |
263 | for (formula = fl->items; formula != NULL; formula = formula->next) |
264 | for (check = formula->next; check != NULL; check = check->next) |
264 | for (check = formula->next; check != NULL; check = check->next) |
… | |
… | |
373 | return at; |
373 | return at; |
374 | } |
374 | } |
375 | } |
375 | } |
376 | else |
376 | else |
377 | { |
377 | { |
378 | if (!strcasecmp (t->item->clone.name, name)) |
378 | if (t->item && !strcasecmp (t->item->clone.name, name)) |
379 | return t->item; |
379 | return t->item; |
380 | } |
380 | } |
381 | |
381 | |
382 | if (t->next_yes) |
382 | if (t->next_yes) |
383 | { |
383 | { |