Unicorn with delicious cookie
Мы используем куки, чтобы пользоваться сайтом было удобно.
Хорошо
to the top
>
>
>
Примеры ошибок, обнаруженных с...

Примеры ошибок, обнаруженных с помощью диагностики V647

V647. Value of 'A' type is assigned to a pointer of 'B' type.


Tizen

V647 The value of 'int' type is assigned to the pointer of 'int' type. surveillance_test_suite.c 928


void person_recognized_cb(
  mv_surveillance_event_trigger_h handle,
  mv_source_h source,
  int video_stream_id,
  mv_surveillance_result_h event_result,
  void *user_data)
{
  ....
  int *labels = malloc(sizeof(int) * number_of_persons);
  ....
}

The thing that the malloc function has not been declared, so there is no #include <stdlib.h> anywhere. Details: https://www.viva64.com/en/a/0065/