docgen: fix doc since tag retrieval
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 20 Apr 2016 11:49:51 +0000 (12:49 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 12 May 2016 10:59:09 +0000 (11:59 +0100)
gendoc.lua

index cb0483f..b5a7292 100644 (file)
@@ -1100,8 +1100,8 @@ local write_full_doc = function(f, doc1, doc2)
     if doc2 then
         since = doc2:since_get()
     end
-    if not since and doc then
-        since = doc:since_get()
+    if not since and doc1 then
+        since = doc1:since_get()
     end
     if since then
         f:write_i(since)