OSDN Git Service
(root)
/
android-x86
/
external-parted.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc24c3
)
do not loop in case message exception has no message
author
Otavio Salvador
<otavio@ossystems.com.br>
Thu, 24 Apr 2008 20:46:28 +0000
(17:46 -0300)
committer
Otavio Salvador
<otavio@ossystems.com.br>
Sat, 26 Apr 2008 23:44:57 +0000
(20:44 -0300)
The exception handler was looping when the exception had no message.
libparted/exception.c
patch
|
blob
|
history
diff --git
a/libparted/exception.c
b/libparted/exception.c
index
c9a50bb
..
5fb3c79
100644
(file)
--- a/
libparted/exception.c
+++ b/
libparted/exception.c
@@
-242,7
+242,7
@@
ped_exception_throw (PedExceptionType ex_type,
ex->type = ex_type;
ex->options = ex_opts;
- while (
1
) {
+ while (
message
) {
ex->message = (char*) malloc (size * sizeof (char));
if (!ex->message)
goto no_memory;