[Bf-blender-cvs] [a0ff2be1999] master: Cleanup: remove pointless strcpy return value check
Campbell Barton
noreply at git.blender.org
Wed Aug 31 08:14:07 CEST 2022
Commit: a0ff2be19991acdec5885b02fca0d937055d9d6c
Author: Campbell Barton
Date: Wed Aug 31 16:12:24 2022 +1000
Branches: master
https://developer.blender.org/rBa0ff2be19991acdec5885b02fca0d937055d9d6c
Cleanup: remove pointless strcpy return value check
===================================================================
M intern/ghost/intern/GHOST_DropTargetWin32.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_DropTargetWin32.cpp b/intern/ghost/intern/GHOST_DropTargetWin32.cpp
index 2283cff3827..5ca48ee9cd5 100644
--- a/intern/ghost/intern/GHOST_DropTargetWin32.cpp
+++ b/intern/ghost/intern/GHOST_DropTargetWin32.cpp
@@ -288,11 +288,8 @@ void *GHOST_DropTargetWin32::getDropDataAsString(IDataObject *pDataObject)
return NULL;
}
- if (!::strcpy(tmp_string, str)) {
- ::free(tmp_string);
- ::GlobalUnlock(stgmed.hGlobal);
- return NULL;
- }
+ ::strcpy(tmp_string, str);
+
/* Free memory. */
::GlobalUnlock(stgmed.hGlobal);
::ReleaseStgMedium(&stgmed);
More information about the Bf-blender-cvs
mailing list