[Groonga-commit] groonga/groonga [master] avoid clearing error status.

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 12日 (月) 16:05:26 JST


Susumu Yata	2012-03-12 16:05:26 +0900 (Mon, 12 Mar 2012)

  New Revision: 13636125da41b4583228cd9f8cd2f19a45d5cf5b

  Log:
    avoid clearing error status.

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+1 -2)
===================================================================
--- src/groonga.c    2012-03-12 15:36:07 +0900 (b484cbb)
+++ src/groonga.c    2012-03-12 16:05:26 +0900 (e9d6fcc)
@@ -183,7 +183,7 @@ inline static grn_rc
 prompt(grn_ctx *ctx, grn_obj *buf)
 {
   static int the_first_read = GRN_TRUE;
-  grn_rc rc;
+  grn_rc rc = GRN_SUCCESS;
   GRN_BULK_REWIND(buf);
   if (!batchmode) {
 #ifdef HAVE_LIBEDIT
@@ -208,7 +208,6 @@ prompt(grn_ctx *ctx, grn_obj *buf)
           GRN_TEXT_PUT(ctx, buf, multibyte_buf, multibyte_len);
         }
       }
-      rc = GRN_SUCCESS;
     } else {
       rc = GRN_END_OF_DATA;
     }




Groonga-commit メーリングリストの案内
Back to archive index