aboutsummaryrefslogtreecommitdiff
path: root/console
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 12:23:31 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 12:23:31 +0100
commite6a1d81533fd25188ec52c2597c590dd2b91b7c0 (patch)
tree6b3c101f840ac0448256c544c4c1023960787be8 /console
parent2b7cc14992febe2a6c07f01d0106c4537d6ab9f0 (diff)
downloadhurd-e6a1d81533fd25188ec52c2597c590dd2b91b7c0.tar.gz
hurd-e6a1d81533fd25188ec52c2597c590dd2b91b7c0.tar.bz2
hurd-e6a1d81533fd25188ec52c2597c590dd2b91b7c0.zip
console: Avoid setting pointer on error
Diffstat (limited to 'console')
-rw-r--r--console/display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/console/display.c b/console/display.c
index 5ebabeb9..068fe160 100644
--- a/console/display.c
+++ b/console/display.c
@@ -1896,7 +1896,8 @@ display_create (display_t *r_display, const char *encoding,
ports_destroy_right (display->notify_port);
free (display);
}
- *r_display = display;
+ else
+ *r_display = display;
return err;
}