On Tue, Oct 10, 2017 at 12:43 AM, Sebastian Huber <s...@rtems.org> wrote:
> index 6a3b625..26ab28d 100644 > --- a/cpukit/posix/src/pthreadattrcompare.c > +++ b/cpukit/posix/src/pthreadattrcompare.c > @@ -32,7 +32,10 @@ int rtems_pthread_attribute_compare( > if ( attr1->is_initialized != attr2->is_initialized ) > return 1; > > - if ( attr1->stackaddr != attr2->stackaddr ) > + if ( > + attr1->stackaddr != NULL && > + attr2->stackaddr != NULL && > + attr1->stackaddr != attr2->stackaddr ) > return 1; > > There are multiple places in this patch where simple single conditionals could be used rather than more complicated compound expressions. These are harder to do coverage testing with. I don't know whether this is written as part of the coding style but I thought we were trying to move to simple expressions as much as possible. --joel
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel