We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9875f1 commit ef600d8Copy full SHA for ef600d8
src/api/api.c
@@ -761,11 +761,11 @@ static z_result_t _z_session_rc_init(z_owned_session_t *zs, _z_id_t *zid) {
761
z_result_t z_open(z_owned_session_t *zs, z_moved_config_t *config, const z_open_options_t *options) {
762
_ZP_UNUSED(options);
763
764
- _z_config_t *cfg = &config->_this._val;
765
if (config == NULL) {
766
_Z_ERROR("A valid config is missing.");
767
_Z_ERROR_RETURN(_Z_ERR_GENERIC);
768
}
+ _z_config_t *cfg = &config->_this._val;
769
770
_z_id_t zid = _z_session_get_zid(cfg);
771
if (!_z_id_check(zid)) {
0 commit comments