[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Otavio Salvador
otavio at alioth.debian.org
Sat Apr 26 23:45:52 UTC 2008
libparted/exception.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c092d19ecdd04f0805e52b7671b91678a2bb74e2
Author: Otavio Salvador <otavio at ossystems.com.br>
Date: Thu Apr 24 17:46:28 2008 -0300
do not loop in case message exception has no message
The exception handler was looping when the exception had no message.
diff --git a/libparted/exception.c b/libparted/exception.c
index c9a50bb..5fb3c79 100644
--- 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;
More information about the Parted-commits
mailing list