浏览代码

lib/srdb1: adjust the length of str time representation for no-quotes

- used only by usrloc fix done in previous commit
Daniel-Constantin Mierla 9 年之前
父节点
当前提交
f54c723d9d
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      lib/srdb1/db_ut.c

+ 4 - 2
lib/srdb1/db_ut.c

@@ -264,8 +264,10 @@ inline int db_time2str_ex(time_t _v, char* _s, int* _l, int _qmode)
 	}
 	*_l = l;
 
-	if(_qmode) *(_s + l) = '\'';
-	*_l = l + 2;
+	if(_qmode) {
+		*(_s + l) = '\'';
+		*_l = l + 2;
+	}
 	return 0;
 }