emulator: fixed bugs in get_drive_image_file()
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 12 May 2015 04:29:12 +0000 (13:29 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 12 May 2015 04:29:53 +0000 (13:29 +0900)
Change-Id: I3b7169785499086c32ff9588acfb26a921f180f2

tizen/src/emul_state.c

index fe9d039..94534b3 100644 (file)
@@ -417,7 +417,7 @@ const char* get_drive_image_file(void)
 {
     char *drive_image_file = get_variable("drive_image_file");
 
-    if (!drive_image_file) {
+    if (drive_image_file) {
         return drive_image_file;
     }
 
@@ -426,7 +426,7 @@ const char* get_drive_image_file(void)
     BlockBackend *bb = blk_by_name("drive");
     if (bb) {
         BlockDriverState *bs = blk_bs(bb);
-        set_variable("drivce_image_file", bs->filename, true);
+        set_variable("drive_image_file", bs->filename, true);
 
         return bs->filename;
     }