diff options
author | Jack Lloyd <[email protected]> | 2018-12-23 15:57:56 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-23 15:57:56 -0500 |
commit | 80085ed7138db2112322e564377917adf44d243a (patch) | |
tree | 313df6d51ff5e1bca5f9318c819b3e2394f59fc5 /src/lib | |
parent | 98c21258228bbee8199ace8d9f5e0c52c9b9d901 (diff) |
Avoid double return of unique_ptr
Flagged by Coverity
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/utils/os_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index 946a2c297..558bd71e6 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -566,10 +566,12 @@ std::unique_ptr<OS::Echo_Suppression> OS::suppress_echo_on_terminal() }; return std::unique_ptr<Echo_Suppression>(new Win32_Echo_Suppression); -#endif + +#else // Not supported on this platform, return null return std::unique_ptr<Echo_Suppression>(); +#endif } } |