Skip to content

Commit

Permalink
Return nil if no default printer is set
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanstitt committed Jul 7, 2013
1 parent a0d33f5 commit 4141850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/cups.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ static VALUE cups_get_default(VALUE self)
VALUE def_p = rb_str_new2(default_printer);

return def_p;
} else {
return Qnil;
}
// should return nil if no default printer is found!
}

/*
Expand Down

0 comments on commit 4141850

Please sign in to comment.