Skip to content

Commit

Permalink
maybe fix failing zconfig spec
Browse files Browse the repository at this point in the history
  • Loading branch information
paddor committed Jan 3, 2025
1 parent fe6f850 commit f7c7132
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/cztop/config/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ module CZTop::Config::Serialization
# Serialize to a string in the ZPL format.
# @return [String]
def to_s
ffi_delegate.str_save.read_string
if ffi_delegate.null?
return ''
else
ptr = ffi_delegate.str_save
ptr.null? ? '' : ptr.read_string
end
end


Expand Down

0 comments on commit f7c7132

Please sign in to comment.