summaryrefslogtreecommitdiff
path: root/src/core/wee-upgrade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-upgrade.c')
-rw-r--r--src/core/wee-upgrade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 4f9419860..f1b5380b0 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -600,7 +600,7 @@ session_read_str (FILE *file, char **string)
if (string)
{
- (*string) = (char *)malloc ((length + 1) * sizeof (char));
+ (*string) = malloc (length + 1);
if (!(*string))
return 0;