Skip to content
Snippets Groups Projects
Commit 0c63f607 authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

fixed source error which did not affect compiled code

parent 18c75633
Branches
No related tags found
No related merge requests found
......@@ -51,9 +51,9 @@ int parSelectByAnother(
/* Search for parameter names */
for(int i=0; i<d1->parNr; i++) {
if(d1->n[i].name==NULL || strnlen(d1->n[i].name, 1)<1) continue;
if(strnlen(d1->n[i].name, 1)<1) continue;
for(int j=0; j<d2->parNr; j++) {
if(d2->n[j].name==NULL || strnlen(d2->n[j].name, 1)<1) continue;
if(strnlen(d2->n[j].name, 1)<1) continue;
if(strcasecmp(d1->n[i].name, d2->n[j].name)==0) {d1->n[i].sw=1; continue;}
/* Allow mixed '-' and '_' */
char *buf1, *buf2;
......@@ -67,9 +67,9 @@ int parSelectByAnother(
/* Search for TAC names */
for(int i=0; i<d1->tacNr; i++) {
if(d1->r[i].name==NULL || strnlen(d1->r[i].name, 1)<1) continue;
if(strnlen(d1->r[i].name, 1)<1) continue;
for(int j=0; j<d2->tacNr; j++) {
if(d2->r[i].name==NULL || strnlen(d2->r[j].name, 1)<1) continue;
if(strnlen(d2->r[j].name, 1)<1) continue;
if(strcasecmp(d1->r[i].name, d2->r[j].name)==0) {d1->r[i].sw=1; continue;}
/* Allow mixed '-' and '_' */
char *buf1, *buf2;
......@@ -135,10 +135,10 @@ int parCombineTACs(
/* Copy contents for common TACs */
for(int i=0; i<d1->tacNr; i++) {
/* find matching TAC name */
if(d1->r[i].name==NULL || strnlen(d1->r[i].name, 1)<1) continue;
if(strnlen(d1->r[i].name, 1)<1) continue;
int j;
for(j=0; j<d2->tacNr; j++) {
if(d2->r[i].name==NULL || strnlen(d2->r[j].name, 1)<1) continue;
if(strnlen(d2->r[j].name, 1)<1) continue;
if(strcasecmp(d1->r[i].name, d2->r[j].name)==0) break;
/* Allow mixed '-' and '_' */
char *buf1, *buf2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment