From: Gerhard Sittig Date: Sun, 4 Feb 2018 15:18:03 +0000 (+0100) Subject: beaglelogic: silence compiler warning X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=57a88297dd0c57eb9eab2d79bdf681ddcca29f00;hp=57a88297dd0c57eb9eab2d79bdf681ddcca29f00;p=libsigrok.git beaglelogic: silence compiler warning Explicitly assign NULL to param to avoid the "may be used uninitialized" warning reported in bug #1094. Behaviour remains unchanged. All references to the variable were under "if (!conn)", and the assigning arm of the branch checked for "if (!param)" after assignment. So the error could not happen, but compilers may not have noticed depending on the width of their scope during compilation. Move the initialization of 'conn' closer to the conditional assignment, such that all paths are seen in one spot during maintenance. This fixes bug #1094. ---