]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Backout the previous AppInfo OVT Coverity fix.
authorOliver Kurth <okurth@vmware.com>
Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)
open-vm-tools/services/plugins/appInfo/appInfo.c

index 8801b68a097eb0b147fcc32078f75e61325ade1c..774ccae9eb6f79dfcb4231c7f4e62510c5a7c0df 100644 (file)
@@ -228,14 +228,11 @@ AppInfoGatherTask(ToolsAppCtx *ctx,
 
    tstamp = VMTools_GetTimeAsString();
 
+
    len = Str_Snprintf(tmpBuf, sizeof tmpBuf, headerFmt,
                       APP_INFO_VERSION_1,
                       counter,
                       tstamp != NULL ? tstamp : "");
-   if (len <= 0) {
-      g_warning("Insufficient space for the header.\n");
-      goto abort;
-   }
 
    DynBuf_Append(&dynBuffer, tmpBuf, len);