diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-03-02 18:07:59 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-03-02 18:07:59 +0100 |
commit | f0b19987039b9f5dc337a8ab9287a4406ea273a0 (patch) | |
tree | cb92a66e224e4e18efb267998744dadf99a47f1f /source/dialogs/window.c | |
parent | f05f0de58346557df24dd7c3f5d04e9df913525f (diff) |
Cleanups (cppcheck)
Diffstat (limited to 'source/dialogs/window.c')
-rw-r--r-- | source/dialogs/window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/dialogs/window.c b/source/dialogs/window.c index fcbcc8c6..cff9d052 100644 --- a/source/dialogs/window.c +++ b/source/dialogs/window.c @@ -455,13 +455,13 @@ static void _window_mode_load_data ( Mode *sw, unsigned int cd ) if ( ( c = window_client ( w ) ) ) { // final line format - unsigned int wmdesktop; - char desktop[5]; + char desktop[5]; desktop[0] = 0; - size_t len = + size_t len = ( ( c->title != NULL ) ? strlen ( c->title ) : 0 ) + ( c->class ? strlen ( c->class ) : 0 ) + classfield + 50; - char *line = g_malloc ( len ); + char *line = g_malloc ( len ); if ( !pd->config_i3_mode ) { + unsigned int wmdesktop = 0; // find client's desktop. xcb_get_property_cookie_t cookie; xcb_get_property_reply_t *r; |