Skip to content

Instantly share code, notes, and snippets.

@lwhsu
Created February 20, 2013 18:04
Show Gist options
  • Save lwhsu/4997588 to your computer and use it in GitHub Desktop.
Save lwhsu/4997588 to your computer and use it in GitHub Desktop.
diff --git a/iocore/hostdb/I_HostDBProcessor.h b/iocore/hostdb/I_HostDBProcessor.h
index 1f9862a..3c2a290 100644
--- a/iocore/hostdb/I_HostDBProcessor.h
+++ b/iocore/hostdb/I_HostDBProcessor.h
@@ -405,7 +405,7 @@ HostDBInfo()
, md5_low(0), md5_high(0) {
app.allotment.application1 = 0;
app.allotment.application2 = 0;
- memset(&data, sizeof(data), 0);
+ memset(&data, 0, sizeof(data));
return;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment