From befac2b6b4870ab500fe1897b4e4d76b0f1e5b97 Mon Sep 17 00:00:00 2001 From: Frankenstone Date: Wed, 27 Feb 2019 14:04:05 +0100 Subject: [PATCH] fix possible segfault sh4 hardware Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/2c1759fe2e51905739f557021bd3f5aa3267d07b Author: Frankenstone Date: 2019-02-27 (Wed, 27 Feb 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libspark/audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libspark/audio.cpp b/libspark/audio.cpp index f725a64..25a05a8 100644 --- a/libspark/audio.cpp +++ b/libspark/audio.cpp @@ -322,7 +322,7 @@ int cAudio::StopClip() } close(clipfd); clipfd = -1; - if (mixer_fd >= -1) { + if (mixer_fd > -1) { close(mixer_fd); mixer_fd = -1; }