mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
update result ptr before return
Change-Id: If976f5c769d8ba83eefa1693e6969ef17f357ba8 Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.xx.bhuvaragan@ericsson.com>
This commit is contained in:
parent
737b801768
commit
bee3fda656
@ -357,6 +357,7 @@ int str2char(const char *str, int8_t * chr_ptr)
|
||||
if (arg_long < INT8_MIN || arg_long > INT8_MAX) {
|
||||
return (-3);
|
||||
}
|
||||
*chr_ptr = (uint8_t)arg_long;
|
||||
return 0;
|
||||
} /* str2char(...) */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user