forked from Imagelibrary/rtems
This fix came from Code Inspector, flagged by one of the analysis that was done. This test code is compiled only but better to address the issues so future static analysis reports will not include it.
24 lines
392 B
C
24 lines
392 B
C
/*
|
|
* Copyright (c) 2009 by
|
|
* Ralf Corsépius, Ulm, Germany. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software
|
|
* is freely granted, provided that this notice is preserved.
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <stdlib.h>
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
void *foo = calloc (42, 43);
|
|
int rc = (foo != NULL);
|
|
free(foo);
|
|
|
|
return rc;
|
|
}
|