Skip to content

Commit

Permalink
util: do not unnecessary initialize members of ut128 (#3717)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Aug 2, 2023
1 parent 45f1153 commit fe8ed0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librz/include/rz_endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static inline void rz_write_at_be64(void *dest, ut64 val, size_t offset) {
}

static inline ut128 rz_read_be128(const void *src) {
ut128 val = { 0 };
ut128 val;
val.High = rz_read_be64(src);
val.Low = rz_read_at_be64(src, sizeof(ut64));
return val;
Expand Down Expand Up @@ -308,7 +308,7 @@ static inline void rz_write_at_le64(void *dest, ut64 val, size_t offset) {
}

static inline ut128 rz_read_le128(const void *src) {
ut128 val = { 0 };
ut128 val;
val.High = rz_read_at_le64(src, sizeof(ut64));
val.Low = rz_read_le64(src);
return val;
Expand Down

0 comments on commit fe8ed0b

Please sign in to comment.