Fixing a web-provider crash-popup issue.
authorleerang song <leerang.song@samsung.com>
Fri, 19 Apr 2013 07:10:57 +0000 (16:10 +0900)
committerleerang song <leerang.song@samsung.com>
Fri, 19 Apr 2013 07:20:48 +0000 (16:20 +0900)
[Issue#] N/A
[Problem] Occured a web-provider crash popup
[Cause] Not returnd a string pointer
[Solution] Save a string and return to new string pointers.
[Verification] N/A

Change-Id: I67357bd1201c520e91c7f0b57209c8d5401266ee

src/Daemon/BoxDaemonImpl.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 97bf2f4..4e0efda
@@ -459,7 +459,7 @@ const char* BoxDaemonImpl::getBoxType(const char* boxId)
             LogD("unrecognized box id");
             return NULL; 
         }
-        type = boxType.c_str();
+        type = strdup(boxType.c_str());
     }
 
     LogD("box id: %s, type: %s", boxId, type);