core: Use g_io_error_from_errno() to ensure we have more useful error codes

This commit is contained in:
Colin Walters committed 2011-12-02 11:40:06 -05:00
1 parent 7fc625c967
commit c7235182a4
1 file changed
+1 -1
+1 -1
View File
@@ -233,7 +233,7 @@ ot_util_set_error_from_errno (GError **error,
{
g_set_error_literal (error,
G_IO_ERROR,
0,
g_io_error_from_errno (saved_errno),
g_strerror (saved_errno));
errno = saved_errno;
}