diff options
author | walter harms <wharms@bfs.de> | 2010-10-29 17:24:48 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-11-10 21:53:34 -0800 |
commit | 6c75b449f6436b787247e164bee03691af2a4f55 (patch) | |
tree | d24ea9accb49cc8cdd3e19c87207915c9ae8fb3e /src/Varargs.c | |
parent | 0d29ca61b94cd34b04c5eedae443620a616d01c3 (diff) |
XtFree() can handle NULL , remove check
Signed-off-by: walter harms <wharms@bfs.de>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Varargs.c')
-rw-r--r-- | src/Varargs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Varargs.c b/src/Varargs.c index b03c889..6c9f9ee 100644 --- a/src/Varargs.c +++ b/src/Varargs.c @@ -318,7 +318,7 @@ _XtFreeArgList( if (args) { if (typed_count) for (p = args + total_count; total_count--; ++p) { - if (p->value) XtFree((char *)p->value); + XtFree((char *)p->value); } XtFree((char *)args); } @@ -398,8 +398,7 @@ _XtVaToArgList( } } - if (resources != NULL) - XtFree((XtPointer)resources); + XtFree((XtPointer)resources); *num_args_return = (Cardinal)count; *args_return = (ArgList)args; |