We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6deaff commit 8ffdc2bCopy full SHA for 8ffdc2b
src/utils.c
@@ -129,13 +129,15 @@ int RS_DBI_newEntry(int *table, int length) {
129
int i, indx, empty_val;
130
131
indx = empty_val = (int) -1;
132
- for(i = 0; i < length; i++)
+ for(i = 0; i < length; i++){
133
if(table[i] == empty_val){
134
indx = i;
135
break;
136
}
137
- return indx;
+ }
138
+ return indx;
139
140
+
141
int RS_DBI_lookup(int *table, int length, int obj_id) {
142
int i, indx;
143
0 commit comments