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)
committerSooyoung Ha <yoosah.ha@samsung.com>
Thu, 20 Aug 2015 07:19:44 +0000 (16:19 +0900)
Change-Id: I3b7169785499086c32ff9588acfb26a921f180f2
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
tizen/src/emul_state.c

index 2a676d121a6a1f14041910f7dea2599bf8117110..daa9fe261f71ef3315df12d1818c21698a41d3fa 100644 (file)
@@ -357,7 +357,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;
     }
 
@@ -366,7 +366,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;
     }