Skip to content

Commit

Permalink
Update kernel_controller.c
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaver authored Jul 23, 2022
1 parent 4e3e9e2 commit 79dbd2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memory/src/server/kernel_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void kernel_controller_destroy_process_file(int socket)
ssize_t bytes_received = -1;

void *stream = (uint32_t *)servidor_recibir_stream(socket, &bytes_received);
uint32_t pcb_id, table_id;
uint32_t pcb_id = 0, table_id = 0;
memcpy(&pcb_id, stream, sizeof(uint32_t));
memcpy(&table_id, stream + sizeof(uint32_t), sizeof(uint32_t));
LOG_TRACE("[Server] :=> PCB #%d requested termination. Deleting Table #%d", pcb_id, table_id);
Expand Down

0 comments on commit 79dbd2c

Please sign in to comment.