~ubuntu-branches/debian/sid/ncurses/sid-200908151540

« back to all changes in this revision

Viewing changes to form/fld_def.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-30 03:43:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081130034300-lw6qrujyjmv6e32x
Tags: 5.7+20081122-2
Adding patch from Samuel Thibault to ensure that aalib checks the
value returned by Gpm_GetEvent() and only proceeds if value == 1
(Closes: #506717).

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#include "form.priv.h"
34
34
 
35
 
MODULE_ID("$Id: fld_def.c,v 1.37 2009/02/28 19:00:51 juergen Exp $")
 
35
MODULE_ID("$Id: fld_def.c,v 1.36 2007/10/13 19:29:58 tom Exp $")
36
36
 
37
37
/* this can't be readonly */
38
38
static FIELD default_field =
252
252
  if (field->type != 0)
253
253
    {
254
254
      field->type->ref--;
255
 
      _nc_Free_Argument(field->type, (TypeArgument *)(field->arg));
256
255
    }
 
256
  _nc_Free_Argument(field->type, (TypeArgument *)(field->arg));
257
257
}
258
258
 
259
259
/*---------------------------------------------------------------------------