osmo-arfcn: Fix false positive in gcc 12.1.0

The pointer is initialized in all its uses, however newer gcc warns
about it:
"""
inlined from ‘main’ at /libosmocore/utils/osmo-arfcn.c:144:16:
/usr/include/bits/stdlib-float.h:27:10: error: ‘param’ may be used uninitialized [-Werror=maybe-uninitialized]
"""

Change-Id: If3eff4ab14a7b2a950386244c9b5f2b9adb32f99
This commit is contained in:
Pau Espin 2022-05-13 13:20:46 +02:00
parent d2737e6027
commit 7fba76608f
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ int main(int argc, char **argv)
{
int arfcn, freq, pcs = 0, uplink = -1;
int opt;
char *param;
char *param = NULL;
enum program_mode mode = MODE_NONE;
while ((opt = getopt(argc, argv, "pa:f:udh")) != -1) {