소스 검색

Fix incorrect error message

svn:r862
Nick Mathewson 22 년 전
부모
커밋
5e9ba094bc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/common/util.c

+ 2 - 1
src/common/util.c

@@ -572,7 +572,8 @@ try_next_line:
     value++;
 
   if(!*end || !*value) { /* only a key on this line. no value. */
-    log_fn(LOG_WARN,"Line has keyword '%s' but no value. Skipping.",s);
+    *end = 0;
+    log_fn(LOG_WARN,"Line has keyword '%s' but no value. Skipping.",key);
     goto try_next_line;
   }
   *end = 0; /* null it out */