Permalink
Browse files

Remove extraneous argument to `malloc` call.

  • Loading branch information...
1 parent 960403a commit 69241026ae91bafb6a99b48bc92cb2da1533736f @jonm committed Oct 4, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/db.c
View
@@ -3226,7 +3226,7 @@ void InitScripts()
/* you really don't want to do a lot of reallocs all at once
*/
if (count==0) {
- script_data[top_of_scripts].script = (struct foo_data *) malloc(script_data[top_of_scripts].script, sizeof(struct foo_data));
+ script_data[top_of_scripts].script = (struct foo_data *) malloc(sizeof(struct foo_data));
} else {
script_data[top_of_scripts].script = (struct foo_data *) realloc(script_data[top_of_scripts].script, sizeof(struct foo_data) * (count + 1));
}

0 comments on commit 6924102

Please sign in to comment.