diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-17 23:29:30 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-17 23:29:30 +0000 |
| commit | 483302a2cdc3cc8f4854aecb9cb0ed841babe30c (patch) | |
| tree | 85e72c057e72fbe8ba1142ddad99e65a09a35291 /src/helpers/MiscFunctions.cpp | |
| parent | a903dba8581aedfbc04b168e7074e22d1c3d004f (diff) | |
env: add HYPRLAND_NO_RT
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 85a81657..71263748 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -708,6 +708,10 @@ int64_t configStringToInt(const std::string& VALUE) { } else if (VALUE.starts_with("false") || VALUE.starts_with("off") || VALUE.starts_with("no")) { return 0; } + + if (VALUE.empty() || !isNumber(VALUE)) + return 0; + return std::stoll(VALUE); } |
