Skip to content

Commit 5aaabea

Browse files
Bin Liujfriesse
authored andcommitted
qdevice: optarg should be str in init_from_cmap
Signed-off-by: Bin Liu <[email protected]> Reviewed-by: Jan Friesse <[email protected]>
1 parent a87af76 commit 5aaabea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qdevices/qdevice-net-instance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ qdevice_net_instance_init_from_cmap(struct qdevice_instance *instance)
273273
host_addr = str;
274274

275275
if (cmap_get_string(cmap_handle, "quorum.device.net.port", &str) == CS_OK) {
276-
if (utils_strtonum(optarg, 1, UINT16_MAX, &lli) == -1) {
276+
if (utils_strtonum(str, 1, UINT16_MAX, &lli) == -1) {
277277
qdevice_log(LOG_ERR, "quorum.device.net.port must be in range 1-%u", UINT16_MAX);
278278
free(str);
279279
goto error_free_host_addr;

0 commit comments

Comments
 (0)