return-table-on-multipath.diff
plugins/lua/lua-idmef.c | ||
---|---|---|
342 | 342 |
} |
343 | 343 | |
344 | 344 |
multipath = (top - 2) > 0 ? TRUE : FALSE; |
345 |
if ( multipath ) |
|
345 |
if ( multipath ) {
|
|
346 | 346 |
lua_newtable(lstate); |
347 |
has_ret = TRUE; |
|
348 |
} |
|
347 | 349 | |
348 | 350 |
for ( i = 2; i <= top; i++ ) { |
349 | 351 | |
... | ... | |
353 | 355 |
break; |
354 | 356 |
} |
355 | 357 | |
356 |
if ( ret > 0 && ! has_ret )
|
|
358 |
if ( ret > 0 ) |
|
357 | 359 |
has_ret = TRUE; |
358 | 360 |
} |
359 | 361 |