diff options
-rw-r--r-- | src/.clang-tidy | 2 | ||||
-rw-r--r-- | src/implementation.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy index 0178deb..2ee3372 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -3,11 +3,9 @@ Checks: > -*-uppercase-literal-suffix, -*magic-numbers, -bugprone-reserved-identifier, - -bugprone-suspicious-string-compare, -cert-dcl37-c, -cert-dcl51-cpp, -cert-flp30-c, - -clang-diagnostic-unused-macros, -hicpp-multiway-paths-covered, -hicpp-signed-bitwise, -llvm-header-guard, diff --git a/src/implementation.c b/src/implementation.c index 6225ac5..ad0de63 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -445,7 +445,7 @@ puglSetInternalClipboard(PuglView* const view, const void* const data, const size_t len) { - if (type && strcmp(type, "text/plain")) { + if (type && !!strcmp(type, "text/plain")) { return PUGL_UNSUPPORTED_TYPE; } |