Browse Source

Fix pipe UI message with empty value

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
05a400d01f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      source/utils/CarlaPipeUtils.cpp

+ 7
- 1
source/utils/CarlaPipeUtils.cpp View File

@@ -1209,9 +1209,15 @@ const char* CarlaPipeCommon::_readline(const bool allocReturn, const uint16_t si
#endif
} CARLA_SAFE_EXCEPTION_BREAK("CarlaPipeCommon::readline() - read");

if (ret != 1 || c == '\n')
if (ret != 1)
break;

if (c == '\n')
{
*ptr = '\0';
break;
}

if (c == '\r')
c = '\n';



Loading…
Cancel
Save