diff options
| author | Nick Hibma <n_hibma@FreeBSD.org> | 1999-10-05 20:32:53 +0000 |
|---|---|---|
| committer | Nick Hibma <n_hibma@FreeBSD.org> | 1999-10-05 20:32:53 +0000 |
| commit | d8add747ef4a530079cfc09a060125af0ccce2c3 (patch) | |
| tree | 9cffa5dd1bf326a0e51a7ec88de3c760cb819291 /sys/dev/fb | |
| parent | d7576d81ca1faf74a0e3809d49e1723df51cdbec (diff) | |
Notes
Diffstat (limited to 'sys/dev/fb')
| -rw-r--r-- | sys/dev/fb/splash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fb/splash.c b/sys/dev/fb/splash.c index c75557083dc0..f32af62d8048 100644 --- a/sys/dev/fb/splash.c +++ b/sys/dev/fb/splash.c @@ -83,7 +83,7 @@ splash_test(splash_decoder_t *decoder) { if (splash_find_data(decoder)) return ENOENT; /* XXX */ - if ((*decoder->init)(splash_adp)) { + if (*decoder->init && (*decoder->init)(splash_adp)) { decoder->data = NULL; decoder->data_size = 0; return ENODEV; /* XXX */ @@ -193,7 +193,7 @@ splash_term(video_adapter_t *adp) if (splash_decoder != NULL) { if (splash_callback != NULL) error = (*splash_callback)(SPLASH_TERM, splash_arg); - if (error == 0) + if (error == 0 && splash_decoder->term) error = (*splash_decoder->term)(adp); if (error == 0) splash_decoder = NULL; |
