diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:23:31 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:23:31 +0100 |
commit | e6a1d81533fd25188ec52c2597c590dd2b91b7c0 (patch) | |
tree | 6b3c101f840ac0448256c544c4c1023960787be8 /console | |
parent | 2b7cc14992febe2a6c07f01d0106c4537d6ab9f0 (diff) | |
download | hurd-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.c | 3 |
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; } |