Summary: Do nothing when null data is pasted.
Reviewers: Hermet, raster
Reviewed By: raster
CC: seoz, raster, cedric
Differential Revision: https://phab.enlightenment.org/D473
}
}
else
- format = ecore_x_window_prop_property_get(ev->requestor, ev->property,
- XCB_GET_PROPERTY_TYPE_ANY, 8,
- &data, &num);
+ {
+ format = ecore_x_window_prop_property_get(ev->requestor, ev->property,
+ XCB_GET_PROPERTY_TYPE_ANY, 8,
+ &data, &num);
+ if (!format) return;
+ }
e = calloc(1, sizeof(Ecore_X_Event_Selection_Notify));
if (!e) return;
}
}
else
- format = ecore_x_window_prop_property_get(xevent->xselection.requestor,
- xevent->xselection.property,
- AnyPropertyType, 8, &data,
- &num_ret);
+ {
+ format = ecore_x_window_prop_property_get(xevent->xselection.requestor,
+ xevent->xselection.property,
+ AnyPropertyType, 8, &data,
+ &num_ret);
+ if (!format) return;
+ }
e = calloc(1, sizeof(Ecore_X_Event_Selection_Notify));
if (!e)