~ubuntu-branches/ubuntu/trusty/lua5.1/trusty-security

« back to all changes in this revision

Viewing changes to src/liolib.c

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2011-07-20 12:42:45 UTC
  • Revision ID: james.westby@ubuntu.com-20110720124245-m8u2bohaibil16a7
Tags: 5.1.4-7
Fixed dh_installdocs target for dpkg-buildpackage -B

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
** $Id: liolib.c,v 2.73.1.3 2008/01/18 17:47:43 roberto Exp $
 
2
** $Id: liolib.c,v 2.73.1.4 2010/05/14 15:33:51 roberto Exp $
3
3
** Standard I/O (and system) library
4
4
** See Copyright Notice in lua.h
5
5
*/
276
276
    lua_pushnumber(L, d);
277
277
    return 1;
278
278
  }
279
 
  else return 0;  /* read fails */
 
279
  else {
 
280
    lua_pushnil(L);  /* "result" to be removed */
 
281
    return 0;  /* read fails */
 
282
  }
280
283
}
281
284
 
282
285