Properly memset a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2014-04-13 17:44:20 +02:00 committed by Ignacio R. Morelle
parent 8e60f2c44a
commit 1d1188fff3

View file

@ -108,7 +108,7 @@ bool windows_tray_notification::create_tray_icon()
// filling notification structure
nid = new NOTIFYICONDATA;
memset(nid, 0, sizeof(&nid));
memset(nid, 0, sizeof(*nid));
nid->cbSize = NOTIFYICONDATA_V2_SIZE;
nid->hWnd = window;
nid->uFlags = NIF_ICON | NIF_TIP | NIF_MESSAGE;