~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/xlibi18n/lcPubWrap.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    if (args == (XlcArgList) NULL)
52
52
        return (char *) NULL;
53
 
    
 
53
 
54
54
    ret = (*methods->get_values)(lcd, args, num_args);
55
55
 
56
56
    Xfree(args);
81
81
 
82
82
    if (lcd->core->name == NULL) {
83
83
        lcd->core->name = (char*) Xmalloc(strlen(name) + 1);
84
 
        if (lcd->core->name == NULL) 
 
84
        if (lcd->core->name == NULL)
85
85
            goto err;
86
86
        strcpy(lcd->core->name, name);
87
87
    }
88
 
    
 
88
 
89
89
    if (lcd->methods == NULL)
90
90
        lcd->methods = methods;
91
91
 
92
92
    if ((*pub_methods->pub.initialize)(lcd) == False)
93
93
        goto err;
94
 
    
 
94
 
95
95
    return lcd;
96
96
 
97
97
err: