From 137c9f41c449d15d2e3302d5fe3650899a487e98 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 20 Jul 2011 01:19:44 -0700 Subject: [PATCH] fix crash Change-Id: I65be72b5cd8c0679fb328a78eb4016e2c89ec9b0 --- Android.mk | 2 +- nandroid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Android.mk b/Android.mk index db797cc..1db7fda 100644 --- a/Android.mk +++ b/Android.mk @@ -26,7 +26,7 @@ LOCAL_MODULE := recovery LOCAL_FORCE_STATIC_EXECUTABLE := true -RECOVERY_VERSION := ClockworkMod Recovery v4.0.1.0 +RECOVERY_VERSION := ClockworkMod Recovery v4.0.1.4 LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)" RECOVERY_API_VERSION := 2 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) diff --git a/nandroid.c b/nandroid.c index af97e86..5c70b55 100644 --- a/nandroid.c +++ b/nandroid.c @@ -318,7 +318,7 @@ static void ensure_directory(const char* dir) { typedef int (*nandroid_restore_handler)(const char* backup_file_image, const char* backup_path, int callback); static int unyaffs_wrapper(const char* backup_file_image, const char* backup_path, int callback) { - return unyaffs(backup_file_image, backup_path, callback); + return unyaffs(backup_file_image, backup_path, callback ? yaffs_callback(path) : NULL); } static int tar_extract_wrapper(const char* backup_file_image, const char* backup_path, int callback) {