summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wong <gtw@gnu.org>2014-05-15 13:02:47 -0600
committerGary Wong <gtw@gnu.org>2014-05-15 13:02:47 -0600
commit3ff568730dc24471a3ca5936ddda112dd0ef0d49 (patch)
tree7616b031bfd628d842dbe423fea2e431232bafa8
parent0f1da63cdeb2b4203d80c1ab17ee125a21d73704 (diff)
Fix missing pointer dereference and missing assignment.HEADmaster
-rw-r--r--ChangeLog5
-rw-r--r--gwm.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a60824b..f0a55df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-15 Gary Wong <gtw@gnu.org>
+
+ * gwm.c (handle_crtc_info): Add missing indirection in *cc->ok.
+ (fake_selection_request): Add missing assignment cp.p = p.
+
2014-05-14 Gary Wong <gtw@gnu.org>
* gwm.c (start_managing_window): Fix size of values array.
diff --git a/gwm.c b/gwm.c
index 19e705e..548c9eb 100644
--- a/gwm.c
+++ b/gwm.c
@@ -1636,6 +1636,7 @@ static void fake_selection_request( struct gwm_window *window,
p->target = ev->target;
p->property = ev->property;
p->time = ev->time;
+ cp.p = p;
handle_async_reply( xcb_change_property_checked(
c, XCB_PROP_MODE_REPLACE, ev->requestor,
@@ -1789,7 +1790,7 @@ static INIT void handle_crtc_info( unsigned int sequence, void *reply,
struct crtc_callback *cc = cp.p;
if( error ) {
- cc->ok = FALSE;
+ *cc->ok = FALSE;
free( error );
}