Fixed compiler warning in SDK-conditional code. Thanks to silverity!