diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-09-26 21:07:25 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-09-26 21:07:25 +0200 |
| commit | 118f7c94053913be4a3667d0c21927b220c1fab5 (patch) | |
| tree | e7f8d819eaa67b938a2ec9133c8861cd51cd94c5 | |
| parent | c85b624d28564a6f785b25000e2b7825592a919d (diff) | |
Fix a possible uninitialized local variable
And fix a too long line
| -rw-r--r-- | src/main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index 3cdb618..96f79ae 100644 --- a/src/main.cc +++ b/src/main.cc @@ -399,6 +399,7 @@ private: free(geometry_reply); } else { pixmap = XCB_NONE; + depth = 0; } auto attr_reply = xcb_get_window_attributes_reply(wnd_.conn(), attr_cookie, @@ -544,7 +545,8 @@ private: if (machine.jobs > 0) { cairo_fill_preserve(cairo_.get()); - auto old = std::unique_ptr<cairo_path_t, CairoPathDelete>(cairo_copy_path(cairo_.get())); + auto old = std::unique_ptr<cairo_path_t, CairoPathDelete>( + cairo_copy_path(cairo_.get())); cairo_new_path(cairo_.get()); cairo_rectangle(cairo_.get(), pad_x, y, (machine.jobs * box_width) / machine.data.max_jobs, |
