Browse code

Move code for Windows compile.

Steven Morgan authored on 2015/09/02 02:42:53
Showing 1 changed files
... ...
@@ -2524,6 +2524,7 @@ static void emax_reached(cli_ctx *ctx) {
2524 2524
 
2525 2525
 static int magic_scandesc_cleanup(cli_ctx *ctx, cli_file_t type, unsigned char *hash, size_t hashed_size, int cache_clean, int retcode, void *parent_property)
2526 2526
 {
2527
+    int cb_retcode;
2527 2528
 #if HAVE_JSON
2528 2529
     ctx->wrkproperty = (struct json_object *)(parent_property);
2529 2530
 #else
... ...
@@ -2532,7 +2533,6 @@ static int magic_scandesc_cleanup(cli_ctx *ctx, cli_file_t type, unsigned char *
2532 2532
 
2533 2533
     UNUSEDPARAM(type);
2534 2534
 
2535
-    int cb_retcode;
2536 2535
     if (retcode == CL_CLEAN && ctx->found_possibly_unwanted)
2537 2536
         cb_retcode = CL_VIRUS;
2538 2537
     else