# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/fluxbox/hotfix-text_prop.patch # Copyright (C) 2024 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- util/fluxbox-remote.cc:76:32: error: ordered comparison of pointer with integer zero ('unsigned char*' and 'int') diff --git a/util/fluxbox-remote.cc b/util/fluxbox-remote.cc index 59852e6..504015b 100644 --- a/util/fluxbox-remote.cc +++ b/util/fluxbox-remote.cc @@ -73,7 +73,7 @@ int main(int argc, char **argv) { if (strcmp(cmd, "result") == 0) { XTextProperty text_prop; if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0 - && text_prop.value > 0 + && text_prop.value != 0 && text_prop.nitems > 0) { printf("%s", text_prop.value);