git-svn: trunk@1882
Tomasz Kojm authored on 2006/03/30 17:09:15... | ... |
@@ -1614,7 +1614,7 @@ int cli_magic_scandesc(int desc, cli_ctx *ctx) |
1614 | 1614 |
|
1615 | 1615 |
if(!ctx->options) { /* raw mode (stdin, etc.) */ |
1616 | 1616 |
cli_dbgmsg("Raw mode: No support for special files\n"); |
1617 |
- if((ret = cli_scandesc(desc, ctx, 0, 0, NULL) == CL_VIRUS)) |
|
1617 |
+ if((ret = cli_scandesc(desc, ctx, 0, 0, NULL)) == CL_VIRUS) |
|
1618 | 1618 |
cli_dbgmsg("%s found in descriptor %d\n", *ctx->virname, desc); |
1619 | 1619 |
return ret; |
1620 | 1620 |
} |
... | ... |
@@ -1641,7 +1641,7 @@ int cli_magic_scandesc(int desc, cli_ctx *ctx) |
1641 | 1641 |
lseek(desc, 0, SEEK_SET); |
1642 | 1642 |
|
1643 | 1643 |
if(type != CL_TYPE_DATA && ctx->engine->sdb) { |
1644 |
- if((ret = cli_scanraw(desc, ctx, type) == CL_VIRUS)) |
|
1644 |
+ if((ret = cli_scanraw(desc, ctx, type)) == CL_VIRUS) |
|
1645 | 1645 |
return CL_VIRUS; |
1646 | 1646 |
lseek(desc, 0, SEEK_SET); |
1647 | 1647 |
} |