summaryrefslogtreecommitdiff
path: root/src/Vendor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Vendor.c')
-rw-r--r--src/Vendor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Vendor.c b/src/Vendor.c
index 7940d2e..ed4bc73 100644
--- a/src/Vendor.c
+++ b/src/Vendor.c
@@ -280,16 +280,16 @@ XawCvtCompoundTextToString(Display *dpy, XrmValuePtr args _X_UNUSED, Cardinal *n
XrmValue *fromVal, XrmValue *toVal,
XtPointer *cvt_data _X_UNUSED)
{
- XTextProperty prop;
char **list;
int count;
static char *mbs = NULL;
int len;
-
- prop.value = (unsigned char *)fromVal->addr;
- prop.encoding = XA_COMPOUND_TEXT(dpy);
- prop.format = 8;
- prop.nitems = fromVal->size;
+ XTextProperty prop = {
+ .value = (unsigned char *)fromVal->addr,
+ .encoding = XA_COMPOUND_TEXT(dpy),
+ .format = 8,
+ .nitems = fromVal->size
+ };
if(XmbTextPropertyToTextList(dpy, &prop, &list, &count) < Success) {
XtAppWarningMsg(XtDisplayToApplicationContext(dpy),