diff options
author | Rafal Mielniczuk <rafal.mielniczuk2@gmail.com> | 2012-05-08 22:10:44 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-08 16:22:31 -0400 |
commit | 87e4c9354e17037b7a3b7a21da10283c93d80f7d (patch) | |
tree | af782b2c72f917dee96da0f575ae27d5a39d8959 | |
parent | d42f457b66635df57a67ca264f5ba972023e73f0 (diff) |
window: fix check of cursor image load result
-rw-r--r-- | clients/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/window.c b/clients/window.c index 12a98cb..2c59b23 100644 --- a/clients/window.c +++ b/clients/window.c @@ -676,7 +676,7 @@ create_cursors(struct display *display) for (i = 0; i < count; i++) { images[i] = XcursorLibraryLoadImages(cursors[i], NULL, 32); - if (!images) { + if (!images[i]) { fprintf(stderr, "Error loading cursor: %s\n", cursors[i]); continue; @@ -687,7 +687,7 @@ create_cursors(struct display *display) display->cursor_shm_pool = shm_pool_create(display, pool_size); for (i = 0; i < count; i++) { - if (!images) + if (!images[i]) continue; cursor = &display->cursors[i]; |