rem: style = WMCreatePLDictionary(NULL, NULL, NULL);
add: style = WMCreatePLDictionary(NULL, NULL);
context: main(int argc, char **argv){    WMPropList *prop, *style, *key, *val;    char *path;    int i, theme_too=0, make_pack=0;    char *style_file = NULL;    ProgName = argv[0];    if (argc>1) {        for (i=1; i<argc; i++) {            if (strcmp(argv[i], "-p")==0                || strcmp(argv[i], "--pack")==0) {                make_pack = 1;                theme_too = 1;            } else if (strcmp(argv[i], "-t")==0                       || strcmp(argv[i], "--theme-options")==0) {                theme_too++;            } else if (strcmp(argv[i], "--help")==0) {                print_help();                exit(0);            } else if (strcmp(argv[i], "--version")==0) {                puts(PROG_VERSION);                exit(0);            } else {                if (style_file!=NULL) {                    printf("%s: invalid argument '%s'\n", argv[0],                           style_file[0]=='-' ? style_file : argv[i]);                    printf("Try '%s --help' for more information\n", argv[0]);                    exit(1);                }                style_file = argv[i];            }        }    }    if (make_pack && !style_file) {        printf("%s: you must supply a name for the theme pack\n", ProgName);        exit(1);    }    WMPLSetCaseSensitive(False);    path = defaultsPathForDomain("WindowMaker");    prop = WMReadPropListFromFile(path);    if (!prop) {        printf("%s:could not load WindowMaker configuration file \"%s\".\n",               ProgName, path);        exit(1);    }    /* get global value */    path = globalDefaultsPathForDomain("WindowMaker");    val = WMReadPropListFromFile(path);    if (val) {        WMMergePLDictionaries(val, prop, True);        WMReleasePropList(prop);        prop = val;    }    style = WMCreatePLDictionary(NULL, NULL, NULL);    for (i=0; options[i]!=NULL; i++) {        key = WMCreatePLString(options[i]);        val = WMGetFromPLDictionary(prop, key);        if (val) {            WMRetainPropList(val);            if (isFontOption(options[i])) {                char *newfont, *oldfont;                oldfont = WMGetFromPLString(val);                newfont = convertFont(oldfont);                /* font is a reference to old if conversion is not needed */                if (newfont != oldfont) {                    WMReleasePropList(val);                    val = WMCreatePLString(newfont);                    wfree(newfont);                }            }            WMPutInPLDictionary(style, key, val);            WMReleasePropList(val);        }        WMReleasePropList(key);    }    val = WMGetFromPLDictionary(prop, WMCreatePLString("PixmapPath"));    if (val)        PixmapPath = val;    if (theme_too) {        for (i=0; theme_options[i]!=NULL; i++) {            key = WMCreatePLString(theme_options[i]);            val = WMGetFromPLDictionary(prop, key);            if (val)                WMPutInPLDictionary(style, key, val);        }    }    if (make_pack) {        char *path;        makeThemePack(style, style_file);        path = wmalloc(strlen(ThemePath)+32);        strcpy(path, ThemePath);        strcat(path, "/style");        WMWritePropListToFile(style, path, False);        wfree(path);    } else {        if (style_file) {            WMWritePropListToFile(style, style_file, False);        } else {            puts(WMGetPropListDescription(style, True));        }    }    exit(0);}