Skip to content

Commit

Permalink
Always return String from CameraWidget::Text#get_value
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Dec 24, 2023
1 parent e1e6112 commit f127fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gphoto2/camera_widgets/text.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module GPhoto2
protected def get_value
ptr = Pointer(LibC::Char).null
get_value_ptr pointerof(ptr)
String.new ptr if ptr
ptr ? String.new(ptr) : ""
end

protected def set_value(value)
Expand Down

0 comments on commit f127fd0

Please sign in to comment.