X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcontainer.hxx;h=560df1c99cbb9073eb7428af64a5128925291d5d;hp=020194ba1ee2b1b3b1add9a4a7c253ccae2dbc35;hb=9e76c81586915f9ff6f413d9fefec9b7be7cad31;hpb=56f3994d74dbc36d10bfa83b50b016bf269ac563 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