From 85fc921042efa68b0a34a413dd84bb1ea7a998cc Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 28 Dec 2019 14:51:26 +0100 Subject: Check API pointer before use, fix spelling --- backend.c | 2 +- installer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index 2af2f37..a2b120f 100644 --- a/backend.c +++ b/backend.c @@ -189,7 +189,7 @@ void channels_free(){ size_t u; for(u = 0; u < nchannels; u++){ DBGPF("Destroying channel %lu on instance %s\n", channels[u]->ident, channels[u]->instance->name); - if(channels[u]->impl){ + if(channels[u]->impl && channels[u]->instance->backend->channel_free){ channels[u]->instance->backend->channel_free(channels[u]); } free(channels[u]); diff --git a/installer.sh b/installer.sh index c85b70e..15ad203 100755 --- a/installer.sh +++ b/installer.sh @@ -106,7 +106,7 @@ UPDATER-PREP () { printf "\nInitializing repository...\n" cd $tmp_path git init $tmp_path - printf "Sucessfully imported settings from %s\n" "$updater_file" + printf "Successfully imported settings from %s\n" "$updater_file" ) NIGHTLY_CHECK printf "Preparation successful\n\n" -- cgit v1.2.3