From: Thomas Jarosch Date: Wed, 26 Nov 2008 09:18:29 +0000 (+0000) Subject: libt2n: (tomj) make result_container's has_exception and has_result a bit more robust X-Git-Tag: v0.5~5 X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=commitdiff_plain;h=9e76c81586915f9ff6f413d9fefec9b7be7cad31 libt2n: (tomj) make result_container's has_exception and has_result a bit more robust --- diff --git a/src/container.hxx b/src/container.hxx index 020194b..560df1c 100644 --- a/src/container.hxx +++ b/src/container.hxx @@ -80,9 +80,9 @@ class result_container result* get_result(void); bool has_exception() - { return (result_type==exception); } + { return (result_type==exception && ex != NULL); } bool has_result() - { return (result_type==regular); } + { return (result_type==regular && res != NULL); } }; /** @brief contains a libt2n::command