diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-01-07 19:33:56 +0100 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-01-07 19:33:56 +0100 |
commit | 8c68d2a748ce641209d4e4a142a14ca2b0477c5a (patch) | |
tree | 50abf32d61d790263817f3e563f27f62d61c437a /mimetypes/err.c | |
parent | 14ec080ad440a76234a89f8d8a058eac6d3fe4eb (diff) | |
download | fileserv-8c68d2a748ce641209d4e4a142a14ca2b0477c5a.tar.gz fileserv-8c68d2a748ce641209d4e4a142a14ca2b0477c5a.tar.bz2 |
Uniformly handle out of memory conditions
Diffstat (limited to 'mimetypes/err.c')
-rw-r--r-- | mimetypes/err.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mimetypes/err.c b/mimetypes/err.c index 39f25a5..01164c9 100644 --- a/mimetypes/err.c +++ b/mimetypes/err.c @@ -148,3 +148,10 @@ print_locus_range (FILE *fp, struct locus_range const *lr) fwrite (buf, buflen, 1, fp); free (buf); } + +void +mimetypes_nomem (void) +{ + mimetypes_error_printer ("out of memory"); + abort (); +} |