Ticket #56196: HighSierra-util_fluxbox-remote.cc-nullptr.patch

File HighSierra-util_fluxbox-remote.cc-nullptr.patch, 455 bytes (added by ballapete (Peter "Pete" Dyballa), 7 years ago)
  • util/fluxbox-remote.cc

    old new  
    7373    if (strcmp(cmd, "result") == 0) {
    7474        XTextProperty text_prop;
    7575        if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
    76             && text_prop.value > 0
     76            && text_prop.value != nullptr
    7777            && text_prop.nitems > 0) {
    7878
    7979            printf("%s", text_prop.value);