diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-07-22 07:23:54 +0000 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-07-22 07:23:54 +0000 |
| commit | 0846a40229ad8753419a0ab8a303d3a293df305e (patch) | |
| tree | 7eac468637281f243b85329c06940b7c84119172 | |
| parent | d6e630cd7e0dbbb117cfb9f0035412dc447f2dfb (diff) | |
| download | nimisewi_c-0846a40229ad8753419a0ab8a303d3a293df305e.tar.gz nimisewi_c-0846a40229ad8753419a0ab8a303d3a293df305e.zip | |
added missing error check to main and fixed error message in cgiv0.0.4.2
FossilOrigin-Name: e4d3b7cc592ac6f4eb64c16d4c24e88b04a1e5efe4aff54f6d9c48ac0a723eac
| -rw-r--r-- | cgi.c | 2 | ||||
| -rw-r--r-- | main.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -78,7 +78,7 @@ main(void) char *ns; ns = nimi_sewi(); if (ns == NULL) { - err(EXIT_FAILURE, "memory could'n be allocated"); + err(EXIT_FAILURE, "memory allocation failed"); } print_response_header(); @@ -36,8 +36,12 @@ main(void) err(EXIT_FAILURE, "pledge"); } #endif + char *ns; ns = nimi_sewi(); + if (ns == NULL) { + err(EXIT_FAILURE, "memory allocation failed"); + } printf("%s\n", ns); |
