GNOME Bugzilla – Bug 662236
global: drop incorrect memset
Last modified: 2011-10-19 21:13:56 UTC
shell_global_get_memory_info tries to zero initialize the output parameter with memset, but it passes the wrong size (because of a missing *). There's no reason to do the memset, though. In the normal case all members of the struct gets initialized before the function returns anyway. This commit drops the memset call in favor of one explicit 0 assignment that only gets executed on on atypical platforms.
Created attachment 199477 [details] [review] global: drop incorrect memset
Review of attachment 199477 [details] [review]: Yes.
Attachment 199477 [details] pushed as de352a3 - global: drop incorrect memset