Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 9, 2025
1 parent ff3e5ba commit a9f79f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/linux/helpers/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ frida_receive_chunk (int sockfd, void * buffer, size_t length, const FridaLibcAp
struct msghdr msg;
ssize_t n;

/* avoid inline initialization to prevent the compiler attempting to insert a call to memset */
/*
* Avoid inline initialization to prevent the compiler attempting to insert
* a call to memset.
*/
msg.msg_name = NULL,
msg.msg_namelen = 0,
msg.msg_iov = &io,
Expand Down Expand Up @@ -337,7 +340,10 @@ frida_receive_fd (int sockfd, const FridaLibcApi * libc)
FridaControlMessage control;
struct msghdr msg;

/* avoid inline initialization to prevent the compiler attempting to insert a call to memset */
/*
* Avoid inline initialization to prevent the compiler attempting to insert
* a call to memset.
*/
msg.msg_name = NULL,
msg.msg_namelen = 0,
msg.msg_iov = &io,
Expand Down

0 comments on commit a9f79f1

Please sign in to comment.