Skip to content

Commit

Permalink
fix "Segmentation fault (core dumped)"
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzmhmk committed Jan 22, 2015
1 parent 61b5fd8 commit d2a50b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piggyphoto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ def value(self):
@value.setter
def value(self, value):
if self.type in (GP_WIDGET_MENU, GP_WIDGET_RADIO, GP_WIDGET_TEXT):
value = ctypes.c_char_p(value)
value = str(value)
elif self.type == GP_WIDGET_RANGE:
# According to libgphoto 2.5 docs ( http://enkore.de/libgphoto2-docs/ )
# "Please pass (char*) for GP_WIDGET_MENU, GP_WIDGET_TEXT, GP_WIDGET_RADIO,
Expand Down

0 comments on commit d2a50b9

Please sign in to comment.