fix: undeclared variable c
fix: undeclared variable c
@@ -161,10 +161,13 @@ YR_API YR_MEMORY_BLOCK* yr_process_get_next_memory_block(
// If we haven't read the whole line, skip over the rest.
if (strrchr(buffer, '\n') == NULL)
+ {
+ int c;
do
{
- int c = fgetc(proc_info->maps);
+ c = fgetc(proc_info->maps);
} while (c >= 0 && c != '\n');
+ }
iterator->last_error = ERROR_SUCCESS;
