[PATCH openEuler-1.0-LTS 1/1] gsmi: fix null-deref in gsmi_get_variable