From e258c0029cb277cac3e9b9cab1b090e0eceee403 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Fri, 29 Jul 2022 18:46:07 +0900 Subject: [PATCH] Fix coveriy issue (Assert when fd = 0) Change-Id: I1a089fbf689796f8b13bd680be3558baa48e7a97 Signed-off-by: Eunki, Hong --- dali/internal/system/linux/file-descriptor-monitor-ecore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dali/internal/system/linux/file-descriptor-monitor-ecore.cpp b/dali/internal/system/linux/file-descriptor-monitor-ecore.cpp index 35eb5c0..f121abe 100644 --- a/dali/internal/system/linux/file-descriptor-monitor-ecore.cpp +++ b/dali/internal/system/linux/file-descriptor-monitor-ecore.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -105,7 +105,7 @@ FileDescriptorMonitor::FileDescriptorMonitor(int fileDescriptor, CallbackBase* c { mImpl = new Impl(fileDescriptor, callback, eventBitmask); - if(fileDescriptor < 1) + if(fileDescriptor < 0) { DALI_ASSERT_ALWAYS(0 && "Invalid File descriptor"); return; -- 2.7.4