mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-01-29 06:30:27 +01:00
Revert "Fix a tiny bug that could cause a crash"
This reverts commit ec0023c347.
This commit is contained in:
parent
cda6d85a9d
commit
5994922a0a
1 changed files with 1 additions and 1 deletions
|
|
@ -175,8 +175,8 @@ dkp_backlight_set_brightness (DkpBacklight *backlight, guint value, DBusGMethodI
|
|||
}
|
||||
|
||||
/* write chunk */
|
||||
value_text = g_strdup_printf ("%u", value);
|
||||
len = strlen (value_text);
|
||||
value_text = g_strdup_printf ("%u", value);
|
||||
egg_debug ("Writing '%s' to '%s'", value_text, path);
|
||||
wrote = write (fd, value_text, len);
|
||||
if (wrote < len) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue