Skip to content

Commit

Permalink
Properly memset a variable.
Browse files Browse the repository at this point in the history
Issue found by cppcheck.
  • Loading branch information
mordante committed Apr 13, 2014
1 parent cf8f786 commit 8d87549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows_tray_notification.cpp
Expand Up @@ -109,7 +109,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;
Expand Down

0 comments on commit 8d87549

Please sign in to comment.