]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
[dnd] Coverity Fixes
authorJohn Wolfe <jwolfe@vmware.com>
Thu, 8 Sep 2022 21:51:40 +0000 (14:51 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Thu, 8 Sep 2022 21:51:40 +0000 (14:51 -0700)
dndCommon.c
- truncating time value; false positive

open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c

index 74592f2ef75af5f88194073698d1f19b241a8099..2f7cd72ba8001b946df6cdbfa48cb51847261aa0 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2005-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2005-2022 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -133,6 +133,8 @@ DnD_CreateStagingDirectory(void)
    if (!found) {
       rqContext *context;
 
+      /* We're just using the time as a random seed, not as a timestamp. */
+      /* coverity[store_truncates_time_t] */
       context = Random_QuickSeed((unsigned)time(NULL));
 
       for (i = 0; i < 10; i++) {