UAVObjectGeneratorGCS::process_object uses incorrect param null check

Description

A small bug introduced by LP-183:

-bool UAVObjectGeneratorGCS:rocess_object(ObjectInfo *info)
+bool UAVObjectGeneratorGCS:rocess_object(ObjectInfo *object)
{
if (info == NULL) {
return false;

the if statement should NULL check against object, not info.

The compiler complains about this:
../../ground/uavobjgenerator/generators/gcs/uavobjectgeneratorgcs.cpp:608:9: warning: comparison of function 'info' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (info == NULL) {

Environment

None

Assignee

Stefan Karlsson

Reporter

Stefan Karlsson

Labels

None

Components

Fix versions

Affects versions

Priority

Low
Configure