-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engines: separate declaration and assignment
Separate the declaraction and assignment for some variables. This is a prep patch for a Coccinelle script that converts mallloc+memset(,0,) to calloc. Part of this patch was created using the Coccinelle script below. @@ identifier x; expression y; statement s; type T; @@ -T x = malloc(y); +T x; +x = malloc(y); ( if (!x) s | if (x == NULL) s | ) memset(x, 0, y); Signed-off-by: Vincent Fu <[email protected]>
- Loading branch information
1 parent
a7b7cb5
commit a93259c
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters