Branch: Tag:

2008-01-19

2008-01-19 17:01:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added missing initializer.

Rev: src/post_modules/GTK2/source/gtkfilechooserdialog.pre:1.11
Rev: src/post_modules/GTK2/source/gtkrecentchooserdialog.pre:1.7

154:    if (a) {    for (i=0; i<a->size; i++) {    char *text; -  int response_id; +  int response_id = 0;    struct svalue *sv;    struct mapping *m;    if ((ITEM(a)+i)->type!=PIKE_T_MAPPING)
165:    continue;    text=(char *)STR0(sv->u.string);    sv=low_mapping_string_lookup(m,_STR("id")); +  if (sv)    response_id=PGTK_GETINT(sv);    gtk_dialog_add_button(GTK_DIALOG(THIS->obj),text,response_id);    }