projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de6bccc
)
initialize error correctly
author
David Zeuthen
<davidz@redhat.com>
Mon, 26 May 2008 15:06:23 +0000
(11:06 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Mon, 26 May 2008 15:06:23 +0000
(11:06 -0400)
src/job-mkfs.c
patch
|
blob
|
history
diff --git
a/src/job-mkfs.c
b/src/job-mkfs.c
index
161fef8
..
cdbcc0e
100644
(file)
--- a/
src/job-mkfs.c
+++ b/
src/job-mkfs.c
@@
-206,12
+206,14
@@
main (int argc, char **argv)
g_print ("progress: %d %d -1 mkfs\n", num_erase_passes + 1, num_erase_passes + 2);
if (command_line != NULL) {
+ error = NULL;
if (!g_spawn_command_line_sync (command_line,
NULL,
&standard_error,
&exit_status,
&error)) {
- g_printerr ("cannot spawn '%s'\n", command_line);
+ g_printerr ("cannot spawn '%s': %s\n", command_line, error->message);
+ g_error_free (error);
goto out;
}
if (WEXITSTATUS (exit_status) != 0) {