From ce08e4536beff2c518870ddb903b616fb7513100 Mon Sep 17 00:00:00 2001 From: oes Date: Fri, 7 Sep 2001 16:43:50 +0000 Subject: [PATCH] Fixed example --- doc/pcrs.3 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/pcrs.3 b/doc/pcrs.3 index 8fe90f96..732d5376 100644 --- a/doc/pcrs.3 +++ b/doc/pcrs.3 @@ -422,14 +422,15 @@ int main(int Argc, char **Argv) { printf("Exec error: %s (%d).\\n", pcrs_strerror(err), err); } - - /* Will tolerate NULL result */ - printf("Result: *%s*\\n", result); + else + { + printf("Result: *%s*\\n", result); + free(result); + } pcrs_free_job(job); - if (result) free(result); - return(err < 0); + } .fi -- 2.39.2