[Groonga-commit] groonga/groonga at 1238389 [master] windows: add missing strdup()

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 28 17:50:36 JST 2014


Kouhei Sutou	2014-08-28 17:50:36 +0900 (Thu, 28 Aug 2014)

  New Revision: 12383897f5337af31d8e5ab97cec238346f97c59
  https://github.com/groonga/groonga/commit/12383897f5337af31d8e5ab97cec238346f97c59

  Message:
    windows: add missing strdup()

  Modified files:
    lib/util.c

  Modified: lib/util.c (+2 -2)
===================================================================
--- lib/util.c    2014-08-28 17:37:31 +0900 (21aa831)
+++ lib/util.c    2014-08-28 17:50:36 +0900 (62794ab)
@@ -1107,7 +1107,7 @@ grn_win32_base_dir(void)
                                                     absolute_dll_filename,
                                                     MAX_PATH);
     if (absolute_dll_filename_size == 0) {
-      win32_base_dir = ".";
+      win32_base_dir = strdup(".");
     } else {
       DWORD ansi_dll_filename_size;
       ansi_dll_filename_size =
@@ -1115,7 +1115,7 @@ grn_win32_base_dir(void)
                             absolute_dll_filename, absolute_dll_filename_size,
                             NULL, 0, NULL, NULL);
       if (ansi_dll_filename_size == 0) {
-        win32_base_dir = ".";
+        win32_base_dir = strdup(".");
       } else {
         char *path;
         win32_base_dir = malloc(ansi_dll_filename_size + 1);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index