1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-12 23:01:14 +01:00
Neal H. Walfield 407f5f9bae gpg: Don't assume that strtoul interprets "" as 0.
* g10/tofu.c (show_statistics): If there are not records, return 0
instead of NULL.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
GnuPG-bug-id: 2853

According to SUSv3:

  If the subject sequence is empty or does not have the expected form,
  no conversion is performed
  ...
  If no conversion could be performed, 0 is returned and errno may be
  set to [EINVAL].

  http://pubs.opengroup.org/onlinepubs/007908799/xsh/strtol.html

It appears that MacOS X sets errno to EINVAL, but glibc doesn't.
Hence, we map NULL to 0 explicitly.
2017-02-02 15:48:45 +01:00
..
2016-11-29 14:56:00 +01:00
2016-11-29 14:56:00 +01:00
2016-11-29 16:48:35 +01:00
2015-02-04 09:15:34 +01:00
2017-01-19 10:39:06 +01:00
2015-02-04 09:15:34 +01:00
2017-01-18 10:07:53 +01:00
2016-11-15 17:50:03 +01:00
2016-01-22 10:54:10 +01:00
2016-11-29 14:56:00 +01:00
2016-12-08 19:02:56 +01:00
2017-01-23 19:16:55 +01:00
2016-12-09 13:13:45 +01:00
2017-01-23 19:16:55 +01:00
2016-03-08 14:08:49 +01:00
2016-12-06 12:16:56 +01:00