aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_dummy_partition_restore.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
committerMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
commitb058098fdcc5d4ed9b81fdb17f64820c0360ad48 (patch)
treee39e5f547b900922775d466507c29b352f046a53 /libgamma_dummy_partition_restore.c
parentmisc (diff)
downloadlibgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.gz
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.bz2
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.xz
m + style fix + check memory allocation overflows
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libgamma_dummy_partition_restore.c')
-rw-r--r--libgamma_dummy_partition_restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgamma_dummy_partition_restore.c b/libgamma_dummy_partition_restore.c
index b7fc4ac..fc393ee 100644
--- a/libgamma_dummy_partition_restore.c
+++ b/libgamma_dummy_partition_restore.c
@@ -22,7 +22,7 @@ libgamma_dummy_partition_restore(struct libgamma_partition_state *restrict this)
}
for (i = 0; i < data->crtc_count; i++)
- if (libgamma_dummy_internal_crtc_restore_forced(data->crtcs + i) < 0)
+ if (libgamma_dummy_internal_crtc_restore_forced(data->crtcs + i))
return -1;
return 0;